Capgemini interview question

Pointers