Pregunta de entrevista de JPMorganChase

Average coding question about sorting