COINS PROBLEM

https://www.codechef.com/problems/COINS
Can somebody tell me what is wrong with my code…Why is it giving me wrong answer