Making change at the stand
Each drink costs 5. Customers pay with a 5, 10 or 20 note, in the order given in bills,
and you start with no money. Write can_serve_all(bills) that returns whether you can
give every customer correct change.
can_serve_all([5, 5, 5, 10, 20]) -> True
can_serve_all([5, 5, 10, 10, 20]) -> False
can_serve_all([10]) -> False
The point is to practise a greedy choice when breaking a 20: prefer giving a 10 and a 5 over three 5s, because 5s are more useful later.
def can_serve_all(bills):
...