Apple interview question

Cashiers make change problem