Cognizant interview question

about oops concepts and sql