Problem Statement
When a system handles multiple transactions like deposits, withdrawals, and transfers, calculating the correct balance becomes error-prone if done naively. Mistakes such as double counting, race conditions, or inconsistent state can cause incorrect balances, leading to user distrust and financial loss.