Capgemini Interview Question

Related to coding, and related to oops concepts