Pregunta de entrevista de Palantir Technologies

algorithmic question about sorting school grades