Capgemini Engineering interview question

question on c, c++, linux