Capgemini interview question

Motivation and some technical questions