Design and implement the ATM cash dispenser. User will request for some amount and you have to return the currency note and its count.
Example1: You have the following notes in ATM
2000-1, 500-5,200-4 and 100 - 4
Input - 1700
Output: 500-3,200-1
Example 2: You have the following notes in ATM
2000-1, 500-1,200-4 and 100 - 0
Input - 600
Output:200-3