Design refundable transaction ledger and prioritization rules | Airbnb Interview Question