Capgemini interview question

First Round aptitude Second round gaming puzzle