Capgemini interview question

Asked me to write a program without using for loop