Capgemini interview question

Basic oops concept, sql and c++