Capgemini Engineering interview question

C basics, Amcat exam pattern