Capgemini interview question

Write code of while loop