Capgemini interview question

Infinte for loop and while in C