LeetCode
Lemonade Change
Click
here
for an explanation.