BayLearnBayAreaLa8s

Guided challenge · About 15 minutes · Finance & Payment Systems

The Dollars Arrived. But the Rupees Haven't.

Maya paid for an international transfer. The recipient is still waiting.

Answers stay in this browser until you save them on this device.

What happened?

Maya wants to send money from the United States to her father in India. She accepts a quote showing how many rupees he will receive.

The transfer service receives her dollars.

Its Indian payout pool does not have enough available rupees.

Her payment has arrived; her father has not been paid.

USD collected, INR payout waitingUnited States$100receivedIndia payout₹8,330waiting for funds
Illustrative figures only. These are not current Wise rates or fees.

Your task

Track the transfer and pay the recipient safely when enough rupees are available.

For this exercise

  • Fictional educational model—not Wise branding, endorsement, or real money.
  • Illustrative figures only. These are not current Wise rates or fees. Example: $100 − $2 fee → $98 × ₹85 = ₹8,330.
  • USD collected and INR payout liquidity stay in separate pools—never one combined total.
  • Collection and payout are separate steps with atomic INR reservation and stable payout identity.
  • The downloadable lab runs locally only; trusted controls simulate funding and INR deposits.
Optional hints
  1. Collection and payout are separate operations.
  2. Other transfers may need the same available balance.
  3. A lost reply does not prove the payout failed.
0/4000
0/4000
0/4000

Related path: System Design Interview Sprint

Interview answer

Explain it in an interview

Maya paid for a transfer to India, the dollars were collected, and her father still has not been paid. How do you finish the payout safely?

Maya sends 100 dollars. The fee is 2 dollars, so 98 dollars convert at 85 rupees per dollar, and her father should receive 8,330 rupees, which is 833,000 paise, on transfer 4821. The dollars are collected, but the rupee payout pool has no liquidity. The transfer is waiting for payout funds, not completed.

How to walk the interviewer through the answer1Dollars arrived and rupees did not2A lost payout reply is not completion3Hold the rupees until the payout is known4Keep funding and payout in saved state5Reconcile before you pay again6Do not claim a live money transfer
Walk these steps in order. Each box is one thing to say before you move on.
  1. Step 1

    Dollars arrived and rupees did not

    USD funding for transfer 4821 can be confirmed while rupee liquidity available is still zero. If I marked the transfer complete at collection, her father would look paid in our records and still be waiting. The two currencies are not one balance. Collection and payout are different steps.

  2. Step 2

    A lost payout reply is not completion

    Retrying the payout when the provider reply is lost can pay twice. Releasing the held rupees too early can let another transfer spend them. Competing transfers can race for a thin pool. I need a reservation that stays held while the payout outcome is unknown.

  3. Step 3

    Hold the rupees until the payout is known

    I record USD as funding events and rupees as available, held, and paid. For this quote I hold 833,000 paise before I ask for the payout. I do not release that hold while the outcome is uncertain. Completion requires one consumed reservation and one provider payout.

  4. Step 4

    Keep funding and payout in saved state

    The transfer database and the provider database commit separately, so this is not one distributed transaction. The status can sit at awaiting payment, waiting for payout funds, payout pending, or completed in simulation. After a restart I recover from the saved reservations instead of creating another transfer.

  5. Step 5

    Reconcile before you pay again

    If the payout reply disappears, recovery looks up the existing reservation and provider result before it pays again. Held funds stay held until that lookup settles. In the waiting demo, available is zero, held is 833,000 paise, and paid is zero until liquidity arrives and the payout completes.

  6. Step 6

    Do not claim a live money transfer

    The rate and the fee are illustrative figures, not a live foreign-exchange quote. This is not a production payout network and not a claim about any real transfer company. There are no refunds or chargebacks in the lab. Separate database files are why recovery exists.

Interviewers listen for the boundary between the tempting shortcut and the rule you actually enforce.

Leave these claims out

  • Dollars collected means rupees paid
  • The two databases commit as one transaction
  • This lab performs a live international payment

I would trace transfer 4821 from USD collection to the rupee hold and only then to paid. An uncertain payout stays held until recovery can name the outcome.

Now say the same idea in your own words, using the story from this challenge.