BT Group Interview Question

5 pirate 100 coins puzzle