Capgemini interview question

Question related to loop, operator,