Capgemini Engineering Interview Question

Everything was as expected