Pregunta de entrevista de Arcesium

Java hacker rank link to solve two level sort using comparators