Cognizant Interview Question

Oops concepts