Capgemini Engineering interview question

c basics