Capgemini Engineering interview question

Good basic stuff..