Capgemini interview question

Logical and tricky questions