BNP Paribas interview question

The pirates brainteaser.