Pregunta de entrevista de Cognizant

Coding challenge was given to be solved.