@garganshul151 you called the function before initialising the DP array
please also reply to 1 count and minimum money needed problem…no one is replying to that its been a day or two