flaconi Interview Question

coding challenge was given .