Capgemini Engineering interview question

Things related to sql and oops