An automated teller machine (ATM) or cashpoint allows customers to withdraw money in £20, £10 and £5 notes. The machine always dispenses the minimum number of notes. Write a program that would control the dispensing of notes from a withdrawal request.