LLD - Design — Splitwise (Expense Sharing)
Identify the bug in this balance calculation code snippet:
balance = 50
transactions = [10, -20, 15]
for t in transactions:
balance = t
print(balance)