Cognizant interview question

Basic oops concept, sql queries, Basic programs