Domanda di colloquio di J.P. Morgan

freq sorting a given data set and discussion on optimal method and time complexities