BNP Paribas interview question

Mathematic question