Capgemini Interview Question

oops concept