Capgemini Engineering interview question

Basic programming, c, c++, oops