Cognizant interview question

basic oops concepts and patterns