Capgemini interview question

Technical