Part 1: Wallet(balance)
add(amount) adds money to balance.spend(amount): if amount is more than the balance, change nothing and return False. Otherwise take it off the balance and return True. Spending exactly what's there is allowed.Part 2: run_wallet(start, moves)
Make a wallet with start money. moves is a list of pairs like ("add", 10) or ("spend", 4). Apply them in order. Return a list of two numbers: [final balance, how many spends were refused].