Domanda di colloquio di GE Digital

Sort an int array by number of one in binary representation