Capgemini interview question

.