Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPrep Other Coding Questions Asked by Stripe
Continue with targeted prep from Stripe's coding question bank.
Interview Summary
The problem had two parts: first, calculating a reserve based on a merchant's processing volume and a single policy, and then extending the implementation to support different reserve policies for multiple funding sources. I implemented both parts in Java and wrote my own test cases to validate the calculations. Both implementations worked on the tests I ran, but I ultimately didn't pass the interview.
Interview Details
Coding Screen: Merchant Payout Reserve Calculator
The interviewer asked me to implement a payout reserve calculation system. Merchants process payments, but a portion of their processing volume may need to be withheld from payouts according to configurable reserve policies. The problem was divided into two parts, with the second extending the data model and calculation logic introduced in the first. The interviewer allowed me to construct the input objects directly, so I didn't need to implement JSON parsing.
Part 1 — Calculate a Reserve for a Single Merchant
The first task was to implement a function called calculate_payout_reserve that determines how much money should be withheld from a merchant's payout. The input included two objects:
- Merchant Profile: Contains
current_processing_volumeand a numerictimestamp. - Reserve Policy: Contains
reserve_rate_percentandmax_reserve.
The reserve rate was represented as a percentage. For example, a value of 5.0 meant that 5% of the merchant's processing volume should be reserved. The calculated reserve was subject to a maximum cap.
Unlock Full Details
Create a free account to unlock this interview experience report.