Pregunta de entrevista de Slync

Basic coding exercise in any language