Pregunta de entrevista de Capgemini

Basic Technical question and small program to write