Giving wrong output

code- https://ide.codingblocks.com/s/322575

@anubhavb11
Return 0 when (n == 0) because 0 coins are needed to build a sum equal to zero. That will solve the issue.

If my answer was able to answer your query, please mark the doubt as resolved.