Pregunta de entrevista de Globant

Algorithm had to be at worst N Log N time and spatial complexity.