Cognizant Interview Question

basic oops concepts and patterns