Write withdrawals(balance, amount) returning how many full withdrawals of amount are possible and the leftover balance, as [count, left]. Use a while loop.
withdrawals(1000, 300) → [3, 100]
withdrawals(50, 100) → [0, 50]
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.