Capgemini Engineering interview question

Basic Java, C++ ,DBMS and a coding