2
* @param {number[]} balance4
var Bank = function (balance) {9
* @param {number} account110
* @param {number} account211
* @param {number} money14
Bank.prototype.transfer = function (account1, account2, money) {16
this.arr[account1 - 1] >= money &&17
this.arr.length >= account1 &&18
this.arr.length >= account220
this.arr[account1 - 1] -= money;21
this.arr[account2 - 1] += money;28
* @param {number} account29
* @param {number} money32
Bank.prototype.deposit = function (account, money) {33
if (this.arr.length >= account) {34
this.arr[account - 1] += money;41
* @param {number} account42
* @param {number} money45
Bank.prototype.withdraw = function (account, money) {46
if (this.arr.length >= account && this.arr[account - 1] >= money) {47
this.arr[account - 1] -= money;54
* Your Bank object will be instantiated and called as such:55
* var obj = new Bank(balance)56
* var param_1 = obj.transfer(account1,account2,money)57
* var param_2 = obj.deposit(account,money)58
* var param_3 = obj.withdraw(account,money)