JUSPAY Interview Experience — Selected for Internship + Full-Time Associate SDE
College: Pune Institute of Computer Technology
Batch: 2027 | Branch: AI&DS | Total Rounds: 7
📝 1. Application Process
I applied through an on-campus placement drive. The drive announcement came on 21 October.
The process took place over several days:
📣 26 October: Pre-Placement Talk (PPT), held virtually
💻 27 October: DSA OA, MCQ OA, and hackathon
🏫 28 October: Interview Rounds 1 and 2, held on campus
🌐 11 November: Interview Rounds 3 and 4, held virtually
The first two interviews happened back-to-back in one continuous sitting of around 5–6 hours. The third and fourth rounds took place in the same virtual meeting.
💻 2. Online Assessments
Around 500 students appeared for the first DSA round. After it, 30 students, including me, were shortlisted for the MCQ round. After the MCQ, 21 students advanced to the hackathon.
The assessment day began at 8 am, and the final OA round ended around 8 pm. It was a very stressful day overall. The next day, 9 students were shortlisted for interviews, and I was one of them.
🧠 OA Round 1: DSA
This was a one-hour round with three hard DSA questions. Once I submitted a question, I couldn’t return to it.
1. Root-to-Node Path Sum with Edge Costs 🌳
The question was similar to CSES Path Queries, but the values were on the edges rather than the nodes.
You were given a rooted tree and had to process two types of queries:
Update the cost of a particular edge.
Find the sum of the edge costs on the path from the root to a given node.
I knew the optimal direction involving a segment tree, an Euler tour, and binary lifting, since I had solved the node-value version before. However, with the time pressure, I used BFS for each path query and a hashmap to look up edge costs. I passed 10 out of 14 test cases.
2. Sum of Manhattan Distances Between Equal Values 📍
This was the same core problem as Codeforces 1648A, but with different wording.
You were given a grid in which each cell contained an ID. The task was to find the sum of the Manhattan distances between every pair of cells with the same ID.
Since Manhattan distance is the sum of the differences along the x and y axes, I handled those two contributions separately. For each ID, I collected its x-coordinates and y-coordinates. After sorting the coordinates, I calculated each coordinate’s contribution based on how many values were on either side of it. I used the same method for both axes and passed all the test cases.
3. Removal Order for Non-Compliant Employees 🏢
The question described a company hierarchy as a tree. Some employees were marked as non-compliant and had to leave, subject to these rules:
An employee could leave only when there were no non-compliant employees anywhere below them in the hierarchy.
If multiple employees were eligible, the one with the smallest ID left first.
When an employee left, their direct reports began reporting to their manager.
Compliant employees never left.
The task was to return the order in which the non-compliant employees would leave.
My approach was to count the non-compliant employees in each employee’s subtree using a postorder DFS. Employees with no non-compliant employees below them were eligible, so I would put them into a min-heap keyed by ID. When an employee left, I would update the count for their manager and add that manager to the heap if they became eligible.
I had around 10 minutes left for this question and struggled to implement the approach in time.
📚 OA Round 2: MCQ
The round lasted 1.5 hours, and calculators were allowed. It had 16 tough questions covering CS fundamentals, JEE Main-level Physics, aptitude, and logical reasoning. After this round, 21 students advanced to the next round.
🛠️ OA Round 3: Hackathon
This was a very tough, implementation-heavy DSA problem, so we were given 2.5 hours.
Problem: Identifying Subscribers Affected by Database Writes
The problem described a sync engine. A server had an orders table, and multiple clients subscribed to queries on that table. Each query was represented as an expression tree containing AND and OR operators, along with conditions such as “status equals PENDING” or “amount is greater than 500.”
After each insert, delete, or update, we had to determine which clients should be notified:
➕ For an insert, notify a client if the new row satisfies its query.
➖ For a delete, notify a client if the deleted row satisfied its query.
🔄 For an update, notify a client if either the old row or the new row satisfies its query.
The constraints were small enough to check every client’s expression tree for every write. For each write, I evaluated every client’s query against the affected row or rows and added the matching client IDs to the result. I passed all the test cases.
🎤 3. Interview Rounds 1 + 2 — On Campus
These two rounds took place on 28 October in one continuous sitting that lasted about 5–6 hours.
🧩 Round 1
The first round lasted around 2–2.5 hours. It began with an introduction and a discussion about the competitive programming culture at my college. We also discussed my projects, my internship at TakeUForward, and my role there.
The interviewer asked system design questions covering LLD design principles and HLD concepts. One question was how Instagram avoids showing the same reels repeatedly while someone keeps scrolling. I suggested using a Bloom filter and explained how it works. There were also questions on OS and CN.
For the DSA part, I shared my laptop screen while the interviewer sat in front of me. Two people were also invigilating through the meeting. The interviewer had seen my resume and coding profiles and said, “Tum to CP wale ho, so let’s make this more interesting.” For each question, I had to estimate how long I needed to derive the solution and write the code, then finish within that time.
1. Partition Array Into Two Arrays to Minimize Sum Difference ⏱️
LeetCode 2035: Partition Array Into Two Arrays to Minimize Sum Difference
You are given an array of even length. The task is to divide it into two arrays of equal size so that the absolute difference between their sums is as small as possible.
The interviewer gave me 15 minutes. There are two useful approaches, depending on the constraints:
Dynamic programming: When the total sum is manageable, we can use DP to track reachable sums and find the split that minimizes the difference. The recursive formulation tracks the current index and the sum difference, returning the best result from that point.
Meet-in-the-middle: When the array length is small, such as at most 40, but the total sum is too large for a DP table, split the array into two halves. Generate all subset sums for each half and group them by how many elements were selected. Since the two resulting arrays must have equal size, for each possible selection count from the first half, pair it with the required count from the second half. Sort one group of sums and use binary search to find the combined sum closest to half of the total sum. This reduces the search from roughly 2ⁿ possibilities to about 2ⁿᐟ² subset sums, with sorting and binary search.
The interviewer didn’t provide the constraints and asked me to use the standard DP approach. I coded the recursion, memoization, and main logic within the 15-minute limit, and passed his test cases.
2. Top View of a Binary Tree 🌲
The interviewer gave me another 15 minutes. The task was to find the top view of a binary tree: the nodes visible when looking at the tree from above.
The input was given as a linear array representation of a tree, where the children of the node at index i were at indices 2i and 2i + 1. I first wrote a helper function to build the binary tree. Then I used a level-order BFS and tracked each node’s horizontal coordinate to find the topmost node at each position.
I completed the solution and explained the time-complexity differences between ordered and unordered maps.
After this, the interviewer continued directly into Round 2.
⚙️ Round 2
This round lasted around 2.5–3 hours and focused on my hackathon solution and how it could be optimized.
I spent about an hour explaining my approach and code in a structured way, walking through the logic in clear blocks. I felt this part was important because it tested how well I understood the solution and could explain my reasoning.
Then we discussed optimization. I suggested multithreading, but the interviewer said there were no extra resources available and asked me to find an algorithmic improvement. He increased the constraints to around one million and asked how each write query could be answered faster.
With the interviewer’s hints, I worked toward using an inverted index over query conditions. Equality predicates could be indexed by column and value, while range predicates could use sorted values and binary search. For each database write, the index could identify which condition nodes matched the affected row. The relevant AND and OR expression trees could then be evaluated to determine which clients should be notified.
I wasn’t able to come up with the full approach independently, but I got close with the interviewer’s hints. We ran short on time, so I didn’t code the optimization. At the end, I asked him about Juspay, how it works, and his role.
Three students, including me, advanced to Round 3.
🌐 4. Interview Rounds 3 + 4 — Virtual
These rounds took place in the same virtual meeting on 11 November.
🧠 Round 3: DSA and Core CS
The round began with questions about my introduction, clubs, leadership, achievements, and projects.
DSA: Dynamic Binary Tree and Distance Queries 🌳
The interviewer asked me to design a system that builds a binary tree dynamically and answers queries about distances between nodes.
The system started with a root. Each insertion gave a child ID, a parent ID, and a position—left or right. If that position under the parent was already occupied, the insertion had to be rejected.
A distance query gave a starting node and a distance d. The task was to count all nodes exactly d edges away, in any direction.
I first proposed treating the tree as an undirected graph and running BFS from the starting node for every distance query. That would take O(N) time per query.
The interviewer then added a constraint: the tree would always be almost perfectly balanced, with its height differing from a perfectly balanced tree by only a few levels. Before I coded anything, he asked me to prove why a perfectly balanced tree has logarithmic height.
I used a geometric series: the number of nodes through height h is 1 + 2 + 4 + … + 2^h = 2^(h+1) − 1. Taking the base-2 logarithm shows that the height is O(log N).
With that height constraint, I proposed maintaining information about the depths of descendants for each node. When inserting a node, I would walk up its ancestors and update their depth trackers. For a distance query, I would check descendants at the required depth, then inspect ancestors and their other branches. I would subtract the count from the branch I had come from to avoid double-counting.
The interviewer was happy with the approach, and I spent the rest of the round writing the C++ implementation. The discussion and coding took about 1.5 hours.
Core CS Questions 💻
We also discussed CN, DBMS, and OS.
For CN, the interviewer asked about HTTP versus HTTPS, how HTTPS provides security, and the difference between TCP and UDP. I explained domain lookup and the TCP handshake, along with the role of asymmetric encryption and key exchange in HTTPS. We also discussed how HTTPS protects data exchanged with the server from being intercepted.
The OS questions included multiprocessing and whether it is possible on a single-core CPU. I was also given a scheduling estimate: two CPU-intensive processes take 8 and 9 seconds, and the context-switching time is around 5 microseconds. The question was how a single-core CPU could give a user the feeling of parallelism.
I reasoned through the effect of the time quantum: larger quanta reduce context-switching overhead and can improve CPU efficiency, but reduce responsiveness. If the quantum is too large, Round Robin begins to behave like FCFS.
🤝 Round 4: HR and Behavioral
The final part of the meeting was a discussion about my background, interests, and how I think about my career.
The interviewer asked about the subjects I had studied in AI&DS and what had drawn me to AI. We also discussed my leadership experience, the principles I try to follow when working with others, and my in-house internship.
The conversation then turned to my career interests. We discussed whether I saw myself working in frontend development, backend development, or AI, particularly in areas such as RAG systems. The interviewer also asked for my perspective on how AI and LLM-based coding assistants are changing software development, and why SDE and FDE roles continue to matter in this landscape.
We also talked about the engineering behind AI products, including system architecture, design choices, guardrails, and security.
💡 5. Overall Experience and Tips
The full process was challenging and intensive. The OA day alone lasted about 12 hours, and the interviews tested more than whether I could solve a problem. I had to explain my approach, respond to hints, reason about constraints, and write working code under time pressure.
My biggest tips:
Believe in yourself. Confidence matters. Before interviews, I found it more helpful to relax by watching a movie or playing a game than to cram something completely new at the last minute.
Listen for the interviewer’s perspective. Pay attention to what they say and the hints they give; they may be guiding you toward a different approach.
Think before you speak. Talk gently and take a moment to organize your thoughts, but keep simple, one-word-answer questions concise.
Structure your explanations. Explain your reasoning in a clear order.
Make your ideas understandable. Use an example or a dry run if that helps the interviewer follow your approach.
✅ 6. Verdict
Juspay HR called me on 12 November and informed me that I was selected.
As of now, I am the only student selected for the Internship + Full-Time Associate SDE role from our college.
🙋 7. About Me
I had been interested in competitive programming since my first year of college, and cracking PhonePe was a personal goal. I could derive the logic for the PhonePe OA questions, but I struggled to code under the pressure of the actual assessment. That experience showed me that solving a problem in practice and implementing it under time pressure were different skills.
I worked on this by taking many virtual contests in different conditions: in my bedroom, in the college reading hall, while traveling, and with or without distractions. That practice helped me build confidence and perform more consistently. After PhonePe, I was shortlisted for interviews at almost every company I was able to apply to.
My core CS subjects were already strong, so during the interview process I focused on preparing for system design and AI topics, especially RAG systems.
📩 For any queries, feel free to reach out to me on LinkedIn.