Razorpay Interview Experience – SDE 2
Round 1 – Low Level Design + Coding (LLD)
Problem: Design and implement an ATM Machine
What was covered:
-
Complete LLD with proper class design (ATM, BankAccount, Card, Transaction, CashDispenser, etc.)
-
Implemented core flows:
- Card validation & PIN authentication
- Balance enquiry
- Cash withdrawal
- Transaction status handling
-
Handled corner cases:
- Insufficient balance
- Insufficient cash in ATM
- Invalid PIN / blocked card
- Transaction rollback scenarios
- No duplicate transaction
- Mutex lock
-
Focused on clean, readable code and extensibility
-
Discussed how the design can be scaled or modified (adding new transaction types)
Feedback:
Interviewer was satisfied with the approach, code quality, and edge-case handling.
Verdict: Strongly recommended for next round ✅
Round 2 – System Design (HLD)
Problem: Design WhatsApp
Discussion areas:
-
High-level components:
- Client (Mobile App)
- Backend services
- Database & message storage
- Basic message flow
-
Discussed one-to-one messaging at a high level
-
Talked about some trade-offs related to storage and scalability
Where I struggled:
-
Couldn’t clearly explain group messaging architecture
-
Missed deeper discussion on:
- Message fan-out strategies
- Ordering guarantees
- Handling large groups efficiently
- Read receipts & delivery acknowledgements
- Trade-offs between push vs pull models
Verdict: Rejected ❌
Overall Takeaways / Learnings
-
Strength: Strong in LLD, object-oriented design, and implementation
-
Gap Identified: Need deeper understanding of:
- Distributed systems
- Real-time messaging systems
- Group chat scaling & trade-offs
-
This interview clearly highlighted the difference between writing good code and designing large-scale systems


