Bajaj Finserv Health Limited interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Bajaj Finserv Health Limited
upvote
share-icon
5 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Journey
Choose a prominent industry language (mine was Java), acquire fundamental knowledge of it, and start practicing DSA. Alongside, focus on building projects (I chose web development), which will help you during interviews. Once you have solved a considerable number of questions, dive into system design and other architectural-level concepts. I pretty much followed the same steps, and they helped me a lot in online assessments and interviews.
Application story
It was an on-campus opportunity. I almost missed the deadline, but my friends reminded me to fill out the form. A few days later, we received an OA link and were later called to Pune for the interviews.
Why selected/rejected for the role?
Business requirements play a major role, but apart from that, I was evaluated based on my past experiences, projects, and problem-solving abilities.
Preparation
Duration: 3 months
Topics: Data Structures, OOPs, System Design, JavaScript, SQL
Tip
Tip

Tip 1: Focus on the basics.
Tip 2: Practice a lot of questions.
Tip 3: Build projects that create an impact.

Application process
Where: Campus
Eligibility: 7 CGPA, (Salary Package - 13 LPA)
Resume Tip
Resume tip

Tip 1: Keep it concise.

Tip 2: Don’t exaggerate — mention only the tech stack you have thorough knowledge of.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date15 Dec 2024
Coding problem4

2 DSA questions, 2 SQL questions, and other MCQs.

1. LFU Cache

Moderate
0/80
Asked in companies
SalesforceOLX GroupDisney + Hotstar

Design and implement a Least Frequently Used(LFU) Cache, to implement the following functions:

1. put(U__ID, value): Insert the value in the cache if the key(‘U__ID’) is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least frequently used item before inserting the new item.

2. get(U__ID): Return the value of the key(‘U__ID’),  present in the cache, if it’s present otherwise return -1.
Note:
  1) The frequency of use of an element is calculated by a number of operations with its ‘U_ID’ performed after it is inserted in the cache.

  2) If multiple elements have the least frequency then we remove the element which was least recently used. 

You have been given ‘M’ operations which you need to perform in the cache. Your task is to implement all the functions of the LFU cache.

Type 1: for put(key, value) operation.
Type 2: for get(key) operation.
Example:
We perform the following operations on an empty cache which has capacity 2:

When operation 1 2 3 is performed, the element with 'U_ID' 2 and value 3 is inserted in the cache.

When operation 1 2 1 is performed, the element with 'U_ID' 2’s value is updated to 1.  

When operation 2 2 is performed then the value of 'U_ID' 2 is returned i.e. 1.

When operation 2 1 is performed then the value of 'U_ID' 1 is to be returned but it is not present in cache therefore -1 is returned.

When operation 1 1 5 is performed, the element with 'U_ID' 1 and value 5 is inserted in the cache. 

When operation 1 6 4 is performed, the cache is full so we need to delete an element. First, we check the number of times each element is used. Element with 'U_ID' 2 is used 3 times (2 times operation of type 1 and 1-time operation of type 1). Element with 'U_ID' 1 is used 1 time (1-time operation of type 1). So element with 'U_ID' 1 is deleted. The element with 'U_ID' 6 and value 4 is inserted in the cache. 
Problem approach

It is a standard LFU Cache problem from Striver’s sheet.

Try solving now

2. Unique Paths II

Moderate
25m average time
70% success
0/80
Asked in companies
AmazonD.E.ShawQuinstreet Software

Given a ‘N’ * ’M’ maze with obstacles, count and return the number of unique paths to reach the right-bottom cell from the top-left cell. A cell in the given maze has a value '-1' if it is a blockage or dead-end, else 0. From a given cell, we are allowed to move to cells (i+1, j) and (i, j+1) only. Since the answer can be large, print it modulo 10^9 + 7.

For Example :
Consider the maze below :
0 0 0 
0 -1 0 
0 0 0

There are two ways to reach the bottom left corner - 

(1, 1) -> (1, 2) -> (1, 3) -> (2, 3) -> (3, 3)
(1, 1) -> (2, 1) -> (3, 1) -> (3, 2) -> (3, 3)

Hence the answer for the above test case is 2.
Try solving now

3. SQL Query

Given a table of employees(id, name, salary), write an SQL query to find the second-highest salary.

4. Customer Orders

Given two tables — customers(id, name) and orders(id, customer_id, order_date) — write an SQL query to find all customers who have never placed an order.

02
Round
Easy
Video Call
Duration60 minutes
Interview date18 Dec 2024
Coding problem2

DSA round with a High-Level Design (HLD) knowledge check.

1. Doubly to Singly Linked List Conversion

Easy
0/40
Asked in company
Bajaj Finserv Health Limited

You are given the head of a doubly linked list. Your task is to convert this list into a singly linked list in-place.


A doubly linked list node has pointers to both the next and the previous node in the sequence. A singly linked list node only has a pointer to the next node.


To perform the conversion, you must iterate through the list and remove the prev pointer from every node by setting it to null. The sequence of nodes and their data, determined by the next pointers, must remain unchanged.


Your function should return the head of the modified list.


Problem approach

First, a doubly linked list consists of nodes with three parts: prev, data, and next.
To convert it into a singly (linear) linked list, we simply need to remove the prev pointers and keep only data and next.

Try solving now

2. System Design

Build a notification service with retry mechanisms and an asynchronous architecture.

03
Round
Easy
Face to Face
Duration60 minutes
Interview date23 Dec 2024
Coding problem1

This round evaluated your ability to think of test cases that might break the code.

 

1. System Design

Write a mock code to calculate the factorial of a number, similar to the functionality in a phone calculator.

Problem approach

Suppose we add a functionality to calculate the factorial of a number in our calculator. I had to write code for this feature while considering various input and output test cases from the user, as well as the approximations required, since the factorial of large numbers grows exponentially, making it difficult to display the result accurately.

04
Round
Medium
Face to Face
Duration30 minutes
Interview date23 Dec 2024
Coding problem1

This round tested my understanding of core Java functionality and overall architectural knowledge.

1. Technical Discussion

I was mainly asked about Java, including OOPs paradigms, runtime and compile-time polymorphism (Learn), the string pool, and comparisons between Java 8 and previous versions — primarily focusing on the Collection Framework.

Apart from that, I had a discussion on designing an Amazon cart system — covering what APIs would be needed, how to optimize the database, and how to scale the system.

That’s all!

05
Round
Easy
HR Round
Duration15 minutes
Interview date23 Dec 2024
Coding problem1

A basic HR one on one.

1. HR Questions

  • How are you going to manage here?
  • What do you consider your weaknesses?
  • What other programming languages do you know?

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
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
961 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6451 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes