Pregunta de entrevista de flaconi

coding challenge was given .