Amazon Interview Question

Problem Single Number from Leetcode