Pregunta de entrevista de Cognizant

Write a code in your preferred language