if n is odd then except one element we can always form pair for every element if n is even then all the elements can form pair
ans = Math . floor ( n / 2 ) ; } document . write ( ans ) ; freq . clear ( ) ;