Exchanging coin problem

getting run error in my code. how to rectify this
ide–>https://ide.codingblocks.com/s/194709

@mikkyimran
hello imran,
use map in place of array. to memoize the computed answers

@aman212yadav it cannot be solved without using maps?

@mikkyimran
no because u cannot make array of size 1000 000 000