Pregunta de entrevista de Elementum

Standard algorithm questions, coding exercises