Cognizant interview question

It was purely on SQL and OOPS