https://algospot.com/judge/problem/read/COINS