Pregunta de entrevista de Nutmeg

Second stage was a coding challenge