Capgemini interview question

c programming, oops,c++