Cognizant interview question

Basic concepts of oops and sql