Write code for a bank account: implement transaction functions and track the amount in the account.
Asked in the power_day_coding stage.
Implement process_transactions(initial_balance, transactions). Each transaction is a two-element list containing an operation, either "deposit" or "withdraw", and a nonnegative integer amount. Apply deposits immediately. Apply a withdrawal only when its amount does not exceed the current balance. Ignore withdrawals that would overdraw the account and unknown operation names. Return the final integer balance.
Example: initial_balance = 100, transactions = [["deposit", 50], ["withdraw", 30]] returns 120.
Constraints: The initial balance and amounts are nonnegative integers, and there are at most 10^4 transactions.
def process_transactions(initial_balance, transactions):