JUSPAY interview experience Real time questions & tips from candidates to crack your interview

Product Engineer

JUSPAY
upvote
share-icon
6 rounds | 20 Coding problems

Interview preparation journey

expand-icon
Journey
It was a rigorous interview that tested DSA, System Design, patience, presence of mind, communication, and other skills. More than just an interview, it was a great learning experience for me and helped improve my problem-solving skills.
Application story
The company came on campus for multiple roles, and I applied even though I was sure I wouldn’t be able to crack a company of this level. I did prepare for it, but I thought it wasn’t enough.
Why selected/rejected for the role?
I was selected for the role of Product Engineer Intern after 6 rounds of interviews. The rounds had a major focus on DSA and problem-solving. While many questions required DSA, they also had a catch that tested the presence of mind.
Preparation
Duration: 3 months
Topics: Tree, Graph, System Design, Operating Systems, Computer Networks
Tip
Tip

Tip 1: Focus on DSA (very important)
Tip 2: Learn System Design
Tip 3: Learn Multithreading

Application process
Where: Campus
Eligibility: No criteria, (Salary Package - 21 LPA)
Resume Tip
Resume tip

Tip 1: Don’t put false information.
Tip 2: Prepare extensively for cross-questioning.

Interview rounds

01
Round
Hard
Online Coding Test
Duration90 minutes
Interview date15 May 2025
Coding problem3

It contained three medium-hard DSA questions based on trees and graphs.

1. The Kingdom's Rebellion

Moderate
0/80
Asked in company
JUSPAY

In the Kingdom of Arborvale, there is a hierarchical system of nobles arranged in a tree-like structure. The kingdom has 'n' nobles, each assigned a unique number from 1 to 'n'. At the top is the King, who is the root of the structure.

Each noble has a parent, except for the King. Some nobles are loyal and respect their ancestors, while others are rebellious.

You are tasked with restoring peace by removing rebellious nobles according to a specific process:

1)You must select a noble to remove who meets all of the following criteria:

I) Is not the King (i.e., is not the root).
II) Is rebellious (does not respect their parent).
III) Has no children who are loyal (i.e., all of its children are also rebellious, or it has no children at all).

2)If multiple nobles meet these criteria, you must select the one with the smallest number.

3)When a noble is removed, all of its children are immediately re-assigned to its parent. This does not affect any other nobles in the current step but may influence future removals.

4)The process continues, selecting and removing one noble at a time, until no nobles are left that meet the removal criteria.

Your task is to determine the order in which the rebellious nobles will be removed.


Problem approach

Use tree traversal to find the rebellious nobles, and use a hashmap or a 2D matrix to manage the kingdom’s condition.

Try solving now

2. City Block Partition

Hard
0/120
Asked in company
JUSPAY

In the city of Gridopolis, the layout is a 2xN grid of blocks. Each block can be either open for passage (.) or closed for construction (x).

A neighborhood is defined as a set of open blocks that are all connected. Two open blocks are connected if you can travel from one to the other by moving between adjacent blocks, either horizontally or vertically.

You are given that the initial city grid contains at most one connected neighborhood.

Your task is to identify and count the number of critical blocks. A critical block is an open block that, if it were to be closed for construction (changed from . to x), would cause the city to split into exactly 3 separate neighborhoods.


Problem approach

It is an easy question where we need to traverse the city by considering it as a matrix and solve for the entire matrix using conditions. Also, consider using graphs and DSU for optimal time complexity.

Try solving now

3. Largest Cycle

Easy
15m average time
85% success
0/40
Asked in companies
VisaJUSPAY

You are given a maze consisting of N cells numbered from 0 to N - 1 and an array ‘arr’ of N integers in which arr[i] contains the cell number that can be reached from ‘i’th cell in one step. You are supposed to find the length of the largest cycle in the maze, given that each cell has less than or equal to 1 exit but can have multiple entry points.

Note:
The maze may contain self-cycles.
arr[i] = -1 means the ‘i’th cell doesn’t have an exit.
Problem approach

First, find the cycle using any algorithm, but make sure to keep track of the tree with a hashmap and then calculate the sum.

Try solving now
02
Round
Easy
Online Coding Interview
Duration30 minutes
Interview date5 Jun 2025
Coding problem6

It contained questions on Physics, core concepts, and programming.

1. Motion Dynamics

Questions based on tension and the laws of motion on an inclined plane.

Problem approach

Tip 1: Basic knowledge of Physics and Math.
Tip 2: Strong calculation skills.

2. Collision Dynamics

Questions based on collisions.

Problem approach

Tip 1: Focus on Physics.
Tip 2: Understand energy exchange during collisions.

3. Output based questions

It was an output-based question, so a line-by-line dry run was used to solve it.

4. Operating System

Question regarding process management and process execution.

5. DBMS

What is normalization? (Learn)

6. Operating System

What is a deadlock and its necessary conditions? (Learn)

03
Round
Hard
Online Coding Test
Duration180 minutes
Interview date10 Jun 2025
Coding problem1

It contained a single tree-based question with 10 test cases, and you needed to pass 7 to clear the round.

1. Locking and Unlocking N-Ary Tree

Ninja
0/200
Asked in company
JUSPAY

You are given a world map represented as a generic M-ary Tree with 'N' uniquely named nodes. Your task is to implement a locking system with three distinct operations: Lock, Unlock, and Upgrade.

The system must process a series of queries, each representing one of these operations, and determine if the operation can be performed successfully.

The operations are defined as follows, where X is the name of a node and uid is the ID of a user:

1) Lock(X, uid): This operation attempts to grant an exclusive lock on the node X for the user uid. A lock can only be granted if:
  I) The node X is not already locked.
  II) No ancestor of X is locked.
  III) No descendant of X is locked.

2) Unlock(X, uid): This operation releases a lock on node X. It can only be performed if:
  I) The node X is currently locked.
  II) The lock on X is held by the same user uid.

3) UpgradeLock(X, uid): This operation allows a user uid to lock an ancestor node X by atomically unlocking all of its descendants that they have locked. An upgrade is possible only if:
  I) The node X is not currently locked.
  II) X has at least one locked descendant.
  III) All locked descendants of X are locked by the same user uid.
  IV) If successful, X becomes locked by uid, and all its previously locked descendants become unlocked.


Problem approach

First, set up the basic structure of a tree node and the tree.
Then, create multiple helper functions and a hashmap for quick retrieval.
Finally, implement the upgrade, unlock, and lock functions.

Try solving now
04
Round
Medium
Video Call
Duration90 minutes
Interview date7 Jul 2025
Coding problem3

The interviewer conducted the round via Google Meet. He asked resume-based questions as well as some DSA questions.

1. GET and POST

Key Differences Between GET and POST Methods. (Learn)

Problem approach

Tip 1: Knowledge of development.

2. One Odd Occurring

Easy
13m average time
95% success
0/40
Asked in companies
Nagarro SoftwareCapegemini Consulting India Private LimitedJUSPAY

Given an array ‘ARR’ of ‘N’ integers, where all the elements occur an even number of times and only one number occurs an odd number of times.


Find and return the number which occurs an odd number of times.


For example:
'N' = 5, 'ARR' = [1, 2, 3, 2, 3]
Output: 1

Except for number 1, all numbers occur an even number of times.
Problem approach

First, I used a hashmap, but it was not the best approach.
Then, I tried bit manipulation, which turned out to be the optimal approach.

Try solving now

3. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
MicrosoftAmazonUber

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

Basic BFS problem in a multi-component graph.

Try solving now
05
Round
Hard
Video Call
Duration30 minutes
Interview date10 Jul 2025
Coding problem1

This round included operating systems, code optimization, and a difficult multithreading question.
The round was held on Slack, and sometimes I was called into a meeting for clearer discussion.

1. Thread Optimization

Optimize the code submitted in the 3rd round and implement the lock method in the tree-of-space question so that it works on a multi-core machine without using built-in mutexes, semaphores, or lock functions. The lock should be granular.

Problem approach

Firstly, I needed to optimize the code, for which I used a hashmap again. Then, for multithreading, I added another state for each node to specify whether it had been locked.
Secondly, I would lock the node by performing all the operations required during a normal lock first, ensuring the data remains consistent, and would revert all changes if, at any point, it was found that the node could not or should not be locked.
The interviewer pointed out many edge cases that needed to be resolved.

06
Round
Hard
Face to Face
Duration30 Minutes
Interview date21 Jul 2025
Coding problem6

It was a system design round held at the office, and a senior software engineer conducted the interview.
This interview included both system and cultural rounds. I was asked puzzles and other software questions based on my resume.

1. System Design

You are designing a new programming language and have full control over it. Now, in the compiler or runtime environment of this language, you need to set up a garbage collector. How would you design a garbage collector for it?

Problem approach

Tip 1: First, clarify the requirements so that you don’t go in the wrong direction.
Tip 2: Develop a design and algorithm, identify all edge cases, and resolve them.
Tip 3: Don’t ask for hints at the beginning. First, try to develop multiple approaches yourself, and then ask for hints if needed.

2. Operating System

What is a Process Control Block, and how does the heap store data? (Learn)

Problem approach

Tip 1: Focus on the operating system.

3. System Design

What is Redis caching?

Problem approach

Tip 1: Learn the caching requirements, use cases, and best practices.

4. System Design

What is encryption?

Problem approach

Tip 1: Learn about public and private keys.
Tip 2: Learn about symmetric and asymmetric hashing.

5. Wire Timing

You have 3 wires with unusual and non-uniform shapes and sizes. Each wire burns completely in 10 minutes, but the rate of burning is not constant.

With 3 wires, how can you measure 15 minutes?

If you have only 2 wires, how can you measure 15 minutes?

Problem approach

Tip 1: Solve puzzles.
Tip 2: Be patient and think logically.

6. Car Ranking

You have 25 cars and a racetrack where only 5 cars can race at a time. You don’t know the exact speed of each car; you only know the relative speeds of the 5 cars you race together at a time. Determine the top 3 fastest cars among the 25.

Problem approach

Tip 1: Solve puzzles.
Tip 2: Be patient and think logically.
Tip 3: Make sure to write as much information as you can, as it helps with easier analysis.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by JUSPAY
2908 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 1 problems
Interviewed by JUSPAY
4912 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 3 problems
Interviewed by JUSPAY
3856 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by JUSPAY
1853 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Product Engineer
3 rounds | 10 problems
Interviewed by Sprinklr
1827 views
0 comments
0 upvotes
company logo
Product Engineer
5 rounds | 10 problems
Interviewed by Sprinklr
1250 views
0 comments
0 upvotes
company logo
Product Engineer
3 rounds | 5 problems
Interviewed by Sprinklr
612 views
0 comments
0 upvotes