Oracle Interview Question

Design a logic to implement ATM machine vencding using certain denominations of notes available