Cognizant interview question

explain oops concepts and few dsa codes