GE interview question

Design and code a change management system. Input coin values. Output either requested amount or all available if less.