Burger King Interview Question

How to count change correctly