Capgemini Engineering Interview Question

C basics, Amcat exam pattern