Function to return the count of K 's  such that the array can be divided  into two sets containing equal number  of elements when all the elements less  than K are in one set and the rest  of the elements are in the other set
function two_sets ( a , n ) {