Capgemini Interview Question

Oops question with code implementation.