Capgemini interview question

C programming