Pregunta de entrevista de Capgemini

Asked me to write a program without using for loop