coin problem

recursion version