What is the error?

@garganshul151 you called the function before initialising the DP array
image

please also reply to 1 count and minimum money needed problem…no one is replying to that its been a day or two