BNP Paribas Interview Question

The pirates brainteaser.