Cognizant Interview Question

Related to oops , sql