Mu Sigma Interview Question

5 pirates 100 coins puzzle