https://aggronaut.com/2016/05/17/three-of-coins-problem/
Three of Coins Problem