Leetcode Find Unique Element Using Map