Build a Payment Management System
Build a payment management system to process transactions with priority given to credit, credit card, and PayPal. For each type, process refunds only for the latest timestamp. Example transactions include payment1: credit with timestamp and amount, and payment2: credit with timestamp and amount. Refunds are linked to payments, such as refund1 linked to payment1 with a specific amount. The system should generate refunds for the target amount.
Asked at:
Airbnb
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early July, 2025
Airbnb
Senior
Mid June, 2025
Airbnb
Senior
Early March, 2025
Airbnb
Senior
Build a payment management system to process transactions priority - Credit, credit card, paypal For each type, we need to only process refund for the latest timestamp payment1: credit : timestamp: amount payment2: credit : timestamp: amount refund1: linked to payment 1: amount refund2: linked to payment 2: amount target refund : amount generate refunds for the target amount
Your account is free and you can post anonymously if you choose.