BigCat Wireless interview question

C program based on while loop