Capgemini Engineering Interview Question

There was also coding in paper