Pregunta de entrevista de Cognizant

Solve a code in your known language