Wrong Answer Chef and Dolls

Why am I getting the wrong answer as the given inputs are working fine?

My Solution

Perhaps you misread the problem statement. You are given an array with N numbers. You need to find the element which is occurring odd number of times. Print that element.

Ok Thanks.

//