Pregunta de entrevista de Strand Life Sciences

Next greater elements, topological sort