Cognizant Interview Question

about oops concepts and sql