Pergunta de entrevista da empresa Capgemini

Asked me to write a program without using for loop