Ameriprise interview question

Pirate puzzle.