Pregunta de entrevista de Asana

usual algorithm questions you'd find on hackerrank