Capgemini Engineering interview question

1) Background