Welcome, aspiring hacker!

On the right, you see the source code for a server that implements a simple bank. It has a subtle problem. Your job is not to fix it, but to exploit it to grow the total balance across the accounts from $3,000 to exactly $3,000,000,000 using no more than 60 transfers.

On the left, you have the bank client. You can use the buttons to transfer money manually, then write JS code. You may use functions transfer(accFrom, accTo, amount) and getBalance(acc). Good luck!

Transfer fromto$
Client code (for you to write)
Bank balances (and number of transfers)
Server code (contains a problem)