Pregunta de entrevista de Beekeeper

algorithmic questions, pair programming task