Cognizant Interview Question

explain oops concepts and few dsa codes