Unique Number II problem

test cases are failing and i cannot find the bug in it!!

Pls send your code by saving on ide so that I could check it.