Capgemini Interview Question

Oops questions Pattern development question