My program for the coin change problem (find the minimum coins needed type question) has a recursion. when I input 1 1000000 1, it abruptly stops with a negative return code