Question d’entretien chez OYO

Sort an array based on frequency of its elements.