DSA Key Problems

Lemonade Change

Customers buy five-dollar lemonade in order and pay with 5, 10, or 20 dollar bills. Starting with no cash, determine whether exact change can be given to every customer.