used multiset so that for odd number of x it will give x and for even no of x false