you task write program popular bank automate incoming transaction transfer deposit withdraw the bank n account number 1 n the initial balance account store 0indexed integer array balance 1th account have initial balance balanceiexecute valid transaction a transaction valid ifthe give account number 1 n andthe money withdraw transfer equal balance accountimplement Bank classbanklong balance Initializes object 0indexe integer array balanceboolean transferint account1 int account2 long money transfer money dollar account number account1 account number account2 return true transaction successful false otherwiseboolean depositint account long money deposit money dollar account number account return true transaction successful false otherwiseboolean withdrawint account long money withdraw money dollar account number account return true transaction successful false example 1inputbank withdraw transfer deposit transfer withdraw10 100 20 50 30 3 10 5 1 20 5 20 3 4 15 10 50outputnull true true true false falseExplanationBank bank new Bank10 100 20 50 30bankwithdraw3 10 return true account 3 balance 20 valid withdraw 10 account 3 20 10 10banktransfer5 1 20 return true account 5 balance 30 valid transfer 20 account 5 30 20 10 account 1 10 20 30bankdeposit5 20 return true valid deposit 20 account 5 account 5 10 20 30banktransfer3 4 15 return false current balance account 3 10 invalid transfer 15 itbankwithdraw10 50 return false invalid account 10 exist Constraintsn balancelength1 n account account1 account2 1050 balancei money 1012at 104 call function transfer deposit withdraw