Capgemini Engineering Interview Question

Oops concept