Capgemini Invent interview question

puzzles