Unique Number Of Occurrences Cpp Leetcode