Pergunta de entrevista da empresa JPMorganChase

Average coding question about sorting