Razorpay Interview Prep (SDE 2 / SDE 3)
Razorpay’s loop from SDE-2 upward is DSA, machine coding, system design, and a hiring manager round. As a payments company, the design round leans hard toward transaction correctness: idempotency, double-entry bookkeeping, saga patterns, and exactly-once semantics are expected to come from you rather than from the interviewer’s prompting.
The coding bar is standard medium, but implementation quality is weighted unusually heavily. Null handling, input validation, and readable naming are graded in a round that at other companies would only check whether the algorithm works.
Interview Process
| Stage | Duration | Focus |
|---|---|---|
| Recruiter Screen | 30 min | Background, level, team match |
| Online Assessment | 60-90 min | Coding problems, sometimes CS fundamentals MCQs |
| Machine Coding | 90-120 min | Working code for a small system, one sitting |
| Problem Solving (DSA) | 45-60 min | Medium problems, clean implementation |
| System Design | ~60 min | Payment correctness and scale, SDE 2 and above |
| Hiring Manager | 45-60 min | Project depth, technology decisions, conflict |
The online assessment with mixed coding and multiple-choice questions is most consistently reported in campus pipelines; experienced candidates often start at the machine coding or DSA round. The round that decides a senior loop is system design, and specifically whether you treat money as a correctness problem rather than a throughput problem.
What Razorpay Actually Tests
Razorpay has a small reported question pool — 11 tagged problems (1 Easy, 8 Medium, 2 Hard). That is too few to break down by percentage, but it is useful information on its own: a narrow pool means the specific problems below carry real weight, and your odds of drawing one you have already solved are much better than at a company with a two-thousand-problem list.
Work through the whole list rather than sampling it, and lean on the process and design sections on this page for the rounds the question data cannot tell you about.
System Design (HLD) Problems Asked at Razorpay
| # | Problem | Difficulty | Link |
|---|---|---|---|
| 1 | Digital Wallet (PhonePe / Venmo) | Advanced | Read → |
| 2 | Payment System | Advanced | Read → |
| 3 | Delayed Trigger Service | Advanced | Read → |
| 4 | Distributed Job Scheduler | Advanced | Read → |
| 5 | Notification System | Intermediate | Read → |
| 6 | Metrics and Monitoring System | Intermediate | Read → |
| 7 | Unique ID Generator | Beginner | Read → |
| 8 | Rate Limiter | Beginner | Read → |
LLD / Machine Coding Problems Asked at Razorpay
The machine coding round expects clean interfaces and a design that extends. Practice one of these end to end against a clock rather than reading three of them.
| # | Problem | Difficulty | Link |
|---|---|---|---|
| 1 | Payment Wallet | Intermediate | Read → |
| 2 | Order Management System | Intermediate | Read → |
| 3 | Splitwise | Intermediate | Read → |
| 4 | Rate Limiter | Intermediate | Read → |
| 5 | Snake and Ladder | Intermediate | Read → |
| 6 | Parking Lot | Beginner | Read → |
DSA Problems Asked at Razorpay
11 problems across 6 pattern groups. Each group is allocated in proportion to its real share of Razorpay’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.
Binary Search
Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 1 | Most Beautiful Item for Each Query | Binary Search | Medium | LeetCode → |
| 2 | Shortest Subarray to be Removed to Make Array Sorted | Monotonic Stack + Binary Search | Medium | LeetCode → |
| 3 | Smallest Good Base | Binary Search | Hard | LeetCode → |
Dynamic Programming
State definition is the whole battle. Say the recurrence out loud before you write the table. All 2 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 4 | Two Best Non-Overlapping Events | Heap + Binary Search | Medium | LeetCode → |
| 5 | Unique Paths | Combinatorics + DP | Medium | Solve → |
Stack & Monotonic Stack
Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 2 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 6 | Decode String | Stack | Medium | Solve → |
| 7 | First Unique Character in a String | Queue | Easy | Solve → |
Intervals, Greedy & Sorting
Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 2 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 8 | Minimum Total Cost to Make Arrays Unequal | Greedy | Hard | LeetCode → |
| 9 | Merge Intervals | Quicksort | Medium | Solve → |
Design (Coding)
Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. One on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 10 | LRU Cache | Doubly Linked List + Design | Medium | Solve → |
Sliding Window & Two Pointers
Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. One on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 11 | Rotate Array | Two Pointers | Medium | Solve → |
Payment Correctness: The Questions Behind the Question
Design prompts here are phrased as product features. The underlying problem is almost always money moving between systems you do not control.
| If the prompt is about | The real problem is | Go deep on |
|---|---|---|
| Accepting a payment | An operation that can succeed invisibly | Idempotency key per attempt, status reconciliation after a timeout, never retrying a charge without a key |
| Wallet balance | Concurrent debits on one account | Double-entry ledger as the source of truth, balance as a derived value, conditional updates or serialised per-account writes |
| Refunds and reversals | Compensation, not deletion | Reversal entries rather than mutation, partial refunds, refunding a payment whose status is still unknown |
| Payouts to merchants | Scheduled money movement at scale | Batching, holds and settlement windows, what happens when a batch partially fails |
| Webhooks from a gateway | At-least-once delivery from a hostile source | Signature verification, replay and out-of-order handling, dedupe by event id, idempotent consumers |
| Webhooks to a merchant | Delivery to an unreliable endpoint | Retry with backoff and jitter, dead-letter queue, replay tooling, ordering guarantees you are willing to promise |
| Subscriptions and mandates | Scheduled retries with business rules | Delayed trigger service, retry policy per failure reason, dunning, idempotency across retries |
| Multi-step checkout | A distributed transaction across providers | Saga with compensations, outbox for downstream events, what the user sees in each intermediate state |
| End-of-day totals | Reconciliation against an external truth | Provider statement versus internal ledger, mismatch classification, manual intervention path |
Two sentences that signal seniority. “A timeout is an unknown, not a failure, so the next step is a status query rather than a retry.” And “the ledger is the source of truth; the balance is a projection of it.” Say both when they apply.
Why the Question List Here Is Short
Razorpay has one of the smallest reported question pools on this site. That shapes how to prepare rather than making preparation impossible.
- Do not treat the tables as a syllabus. With a pool this small, no pattern distribution can be inferred from it. The problems listed are real reports; the absence of a pattern means nothing.
- Prepare the standard medium set instead. Arrays and hashing, strings, two pointers, sliding window, stacks, binary search, trees, and basic dynamic programming at LeetCode medium covers the reported style.
- Spend the saved hours on the other two rounds. Machine coding and the payments design round are where this loop is actually decided, and both reward rehearsal more than reading.
- Rehearse implementation craft. Since the algorithmic bar is medium, the differentiator in the coding round is the quality of what you type. Practice writing a medium problem with validation, naming, and small methods inside the time limit.
Behavioural Round
| # | Question |
|---|---|
| 1 | Tell me about a bug that affected money or data integrity. How did you find it? |
| 2 | Tell me about a system you owned end to end. What was the hardest failure mode? |
| 3 | Tell me about a technology decision you made and would now reverse. |
| 4 | Tell me about an integration with a third party that behaved badly. |
| 5 | Tell me about a time you were on call for an incident you could not immediately explain. |
| 6 | Tell me about a time you disagreed with your manager or a product decision. |
| 7 | Tell me about a time you had to ship fast without compromising correctness. |
| 8 | Why payments, and why Razorpay? |
Razorpay sits between merchants and banks, so the stories that resonate involve an unreliable dependency you could not control: a gateway timing out, a webhook arriving twice, a reconciliation file that did not match. Interviewers are listening for someone who designs for the other side misbehaving.
Tips for Razorpay Interviews
- Fintech correctness is non-negotiable. In system design, address idempotency, double-entry ledgers, and reconciliation unprompted. “What happens if the payment gateway times out?” is close to guaranteed.
- Answer the timeout question properly. A gateway timeout is not a failure, it is an unknown. Say that out loud, then cover the idempotency key, the status reconciliation job, and why you never retry a charge without one.
- Know distributed transactions. Saga pattern, compensating transactions, and why two-phase commit is impractical across external providers. These are the core of the domain.
- Machine coding carries weight. Expect clean interfaces, deliberate patterns, and extensibility. Practice a wallet or Splitwise end to end in ninety minutes with something that runs at the end.
- DSA is standard medium, graded on craft. Handle nulls, validate inputs, name variables well. Razorpay values readability nearly as much as correctness.
- Treat webhooks as hostile. At-least-once delivery, out-of-order arrival, replay, and signature verification. A design that assumes exactly-once inbound delivery gets taken apart.
- Bring one money-flow diagram you can defend. For SDE 3 the loop turns on whether you can walk an architecture you actually owned, including what broke in production.
Other Company Prep
- PhonePe Interview Prep →
- Flipkart Interview Prep →
- Swiggy Interview Prep →
- Stripe Interview Prep →
- All Company Guides →
- Back to Interview Guide →
Round structures, durations, and the presence of an online assessment reflect commonly reported candidate experience rather than published Razorpay documentation, and the loop varies by level, team, and hiring route. The reported Razorpay-tagged question pool is one of the smallest on this site, so the question tables are a sample of style rather than a syllabus. Confirm your round list with your recruiter.