Capgemini interview question

a simple c programme