InterviewDB Experience

Transaction Logging System - OOD Coding Interview

Interview Experience

Problem Design a TransactionLog system that records financial transactions and supports querying. record: append a new transaction (positive = credit, negative = debit). get_balance: sum all transactions for account with ts <= as_of. get_transactions: return all transactions for account in time range [start, end], sorted by ts ascending. rollback: mark a transaction as voided; it no longer affects balance or appears in queries. Return False if txn_id not found. Example: Follow-ups How would you…

Full Details

🔒

Unlock all Affirm questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a affirm interview during the phone round.

It covers the following topics: Coding, Onsite, Phone .