Capgemini Interview Question

Problem solving simple oops questions