Interview guides · Bhatia Brothers
Bhatia Brothers Software Engineer Interview Guide
Bhatia Brothers Software Engineer interview guide: reported rounds, questions and how candidates describe the process.
The 60-second brief
The role of a Software Engineer at Bhatia Brothers is pivotal to the development and maintenance of innovative technology solutions that drive the company's diverse business operations. As a Software Engineer, you will be responsible for designing, implementing, and optimizing software systems that enhance product offerings and improve user experiences. Your contributions will directly impact the efficiency and effectiveness of various internal and external systems, enabling Bhatia Brothers to maintain its competitive edge in the marketplace. This position is not only about coding; it involves collaborating with cross-functional teams to identify opportunities for improvement and innovation. You will work on a range of projects that could include developing new applications, enhancing existing systems, or integrating various technologies to streamline processes.
This guide is scoped to a Software Engineer candidate at Bhatia Brothers.
Focus areas
- Communication Skills (Professional Communication)
- Interview Process (HR + Manager Rounds)
- Group Interview Dynamics
The Bhatia Brothers interview process
Bhatia Brothers candidates report 4 rounds over 3-5 weeks. The stages below are what candidates describe, not a published process.
HR Screening
Initial discussion of your background and motivation for applying.
What to demonstrate
- Initial discussion of your background and motivation for applying
- Depth in Communication Skills (Professional Communication)
How to prepare
- Be able to walk your CV end to end in two minutes, and say why this company specifically.
- Have your salary expectations, notice period and location constraints ready, and ask for the rest of the loop in writing.
Technical Interview
Formal interview with the hiring manager to assess technical skills and problem-solving abilities.
What to demonstrate
- Formal interview with the hiring manager to assess technical skills and problem-solving abilities
- Depth in Communication Skills (Professional Communication)
How to prepare
- Answer aloud and timed: How do you ensure the quality and maintainability of your code?
- Answer aloud and timed: What are your experiences with version control systems such as Git?
Group Interview
Possible group interview format reflecting the collaborative culture of the company.
What to demonstrate
- Possible group interview format reflecting the collaborative culture of the company
- Depth in Communication Skills (Professional Communication)
How to prepare
- Answer aloud and timed: Explain the differences between REST and SOAP web services.
- Answer aloud and timed: Given a specific software architecture, how would you optimize its performance?
Meeting with Owner
Final discussion with Mr. Bhatia to discuss your vision and alignment with the company's goals.
What to demonstrate
- Bhatia to discuss your vision and alignment with the company's goals
- Depth in Communication Skills (Professional Communication)
How to prepare
- Answer aloud and timed: How would you handle a situation where a teammate disagrees with your approach to a problem?
- Answer aloud and timed: Describe a time when you had to learn a new technology quickly to complete a project.
Where candidates lose points
Research the Company
Familiarize yourself with Bhatia Brothers, its products, and its market position. Understanding the company’s mission and values will help you align your answers accordingly.
Practice Coding
Utilize platforms like LeetCode or HackerRank to practice coding challenges. Be prepared to explain your thought process as you solve problems during the interview.
Prepare for Behavioral Questions
Use the STAR (Situation, Task, Action, Result) method to structure your responses to behavioral questions, ensuring clarity and relevance in your answers.
Be Yourself
Authenticity is valued at Bhatia Brothers. Be honest about your experiences and how they shape your approach to work.
Questions & practice
Write a function to reverse a linked list.
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
How would you implement a binary search algorithm?
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Discuss the time and space complexity of your solution.
Medium · Coding / Algorithms
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Explain why the owner filter ignores the listing index
Medium · composite index · query plans · sort elimination
The only index on resource is (tenant_id, status, updated_at DESC, resource_id DESC). A new endpoint returns one user's resources across all statuses, newest created first: WHERE tenant_id = $1 AND owner_user_id = $2 ORDER BY created_at DESC LIMIT 20. On a tenant with 2M rows it takes 900 ms and EXPLAIN shows a sort above a large scan. Explain precisely why the existing index cannot serve it, give the index that can, and state which of these the new index still will not help: owner_user_id alone across tenants; the same query ordered by updated_at. PostgreSQL 16.
Approach
- Separate the two jobs an index does. For filtering, a composite btree is seekable only on a left prefix, so with no predicate on status the scan can at best range over tenant_id and test owner_user_id per row; PostgreSQL 16 has no btree skip scan to jump the unconstrained column.
- For ordering, the index is sorted by (status, updated_at) within a tenant and not by created_at, so the LIMIT cannot stop early: every matching row is read and then sorted. That is the 'Sort Method: top-N heapsort' line, and it is why the plan reads 2M rows to answer with 20.
- Derive the replacement from the access path — equality, equality, then the ordering column: CREATE INDEX CONCURRENTLY ON resource (tenant_id, owner_user_id, created_at DESC). The scan seeks to the (tenant, owner) range and walks 20 entries in order, so the Sort node disappears along with the row-read.
- Treat INCLUDE (title, status) as conditional, not free. An index-only scan still visits the heap for any row whose page is not marked all-visible, so on a table taking 1.2k writes/second the win depends on autovacuum keeping the visibility map current, and the wider index costs more on every insert.
Follow-up
- 90% of rows are status='active'. Would a partial index WHERE status = 'active' change your answer, and for which of the three queries?
- A dashboard runs this for 40 owners in one page load. What changes about the design?
Hold a per-tenant active cap against concurrent creates
Hard · write skew · isolation levels · constraints
A tenant on the standard plan may hold at most 50 resources with status='active'. The create handler runs SELECT count(*) FROM resource WHERE tenant_id = $1 AND status = 'active', compares to 50, then inserts. Two creates arrive 3 ms apart on different instances and the tenant lands at 51. Name the anomaly, say whether PostgreSQL 16 READ COMMITTED or REPEATABLE READ prevents it and why, then give an implementation that holds the cap at READ COMMITTED with the exact statements. Finally, say what changes when the cap is 'at most one running export per tenant' on job_run.
Approach
- Name it: write skew. The two transactions read an overlapping set and write disjoint rows, so there is no row-level conflict for the engine to detect and each commit is individually legal.
- Rule out the levels precisely. READ COMMITTED takes a fresh snapshot per statement and takes no lock on the counted rows, so both see 49. PostgreSQL's REPEATABLE READ is snapshot isolation: it removes non-repeatable reads and phantoms within the snapshot but still admits write skew, because the anomaly is not a re-read of a changed row, it is a read of a set that a concurrent transaction invalidates. Only SERIALIZABLE closes it, by tracking the read dependency and aborting one transaction with SQLSTATE 40001 — a guarantee that exists only if the application re-runs the whole transaction from the read.
- Convert the set predicate into a single-row conflict: keep tenant.active_resource_count and run UPDATE tenant SET active_resource_count = active_resource_count + 1 WHERE tenant_id = $1 AND active_resource_count < 50 in the same transaction as the INSERT. Zero affected rows is the cap, returned as 409. The row lock serialises the decision at any isolation level, and contention is bounded to one tenant's row — which is also the fair-scheduling unit, unlike a global counter that would convoy every tenant behind one row.
- State the cost you just took on: a counter is a second source of truth that can drift, so every path that changes status must adjust it inside the same transaction, and a periodic reconciliation has to exist, with resource_revision as the authority for what the count should have been.
Follow-up
- A resource moves from archived back to active. Which statements change, and what breaks if the counter update and the status change land in different transactions?
- The cap becomes plan-dependent and a plan can change mid-month. Where does the number 50 live, and who reads it?
What programming languages are you proficient in, and how have you applied them in your projects?
Medium · Technical / Domain Questions
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Describe a challenging technical problem you faced and how you resolved it.
Medium · Technical / Domain Questions
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
How do you ensure the quality and maintainability of your code?
Medium · Technical / Domain Questions
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Explain the differences between REST and SOAP web services.
Medium · Technical / Domain Questions
Approach
- Say who the caller is and what they do when the call fails halfway.
- Define the identity of a request so a retry cannot double-apply it.
- Separate accepted, pending, failed and confirmed; they are different facts.
- Design the error taxonomy before the success shape; callers branch on it.
Follow-up
- What happens if the caller retries after a timeout?
- How does a client discover it is on an old version of this contract?
Given a specific software architecture, how would you optimize its performance?
Medium · Problem-Solving / Case Studies
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Listing latency scales with page size, not with filters
Easy · n+1 · latency · query batching
The tenant listing endpoint reads resource filtered by tenant_id and status, ordered by updated_at DESC, and returns each row plus the owner's display name from app_user and the actor of that resource's latest resource_revision. p99 is 55 ms at 10 rows per page and 1.4 s at 200. Database telemetry shows 401 statements per request, each under 1 ms, and nothing in the slow-query log. Diagnose the cause and give the fix, stating the statement count per request and the p99 you expect afterwards.
Approach
- Read the counters before forming a theory. 401 statements for 200 rows is one driver query plus two per row, and sub-millisecond execution with an empty slow-query log rules out a bad plan. The time is round trips, which is why it is invisible in every per-query metric and scales with rows returned rather than with filter selectivity.
- Name the two per-row statements from their normalised text: a single-row app_user lookup by user_id, and a resource_revision lookup by resource_id ordered by version DESC LIMIT 1. Confirm by dropping those two response fields and watching the statement count fall to one. That locates the calls in the serialisation layer, not the repository.
- Check that the arithmetic accounts for the whole gap. Measure one round trip to the replica in isolation; 400 trips at roughly 3 ms of network plus 0.2 ms of execution is about 1.3 s on top of a 55 ms baseline, which matches. If the multiplication had fallen short, the N+1 would only be part of the story and you would keep looking.
- Batch both lookups. Collect owner_user_ids and resource_ids from the driver query, then issue WHERE tenant_id = $1 AND user_id = ANY($2) for the users, and PostgreSQL's SELECT DISTINCT ON (resource_id) ... WHERE resource_id = ANY($2) ORDER BY resource_id, version DESC for the latest revision, which the UNIQUE (resource_id, version) index serves directly. On an engine without DISTINCT ON, use a lateral join or a row_number window. Three statements per request at any page size.
Follow-up
- The page size is capped at 200 today. What breaks first if it is raised to 2,000, and is it still this bug?
- How do you stop the next N+1 from reaching production, given that no individual query is slow and the endpoint's tests pass?
Suggested practice checklist
Built from the rounds and topics Bhatia Brothers candidates report.
Day 1 — Map the Bhatia Brothers loop
- Write out the reported sequence: HR Screening, Technical Interview, Group Interview, Meeting with Owner.
- For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.
Deliverable: A one-page map of the 4 reported rounds, with the weakest marked.
Day 2 — Work Communication Skills (Professional Communication)
- Spend the session on Communication Skills (Professional Communication), which Bhatia Brothers candidates report being tested on.
- Write one worked example in Communication Skills (Professional Communication) and time yourself on it.
Deliverable: One timed worked example in Communication Skills (Professional Communication).
Day 3 — Work Interview Process (HR + Manager Rounds)
- Spend the session on Interview Process (HR + Manager Rounds), which Bhatia Brothers candidates report being tested on.
- Write one worked example in Interview Process (HR + Manager Rounds) and time yourself on it.
Deliverable: One timed worked example in Interview Process (HR + Manager Rounds).
Day 4 — Work Group Interview Dynamics
- Spend the session on Group Interview Dynamics, which Bhatia Brothers candidates report being tested on.
- Write one worked example in Group Interview Dynamics and time yourself on it.
Deliverable: One timed worked example in Group Interview Dynamics.
Day 5 — Answer out loud: Technical / Domain Questions
- Answer aloud, timed: What programming languages are you proficient in, and how have you applied them in your projects?
- Answer aloud, timed: Describe a challenging technical problem you faced and how you resolved it.
Deliverable: Spoken answers to 2 reported Technical / Domain Questions question(s), under time.
Day 6 — Answer out loud: Problem-Solving / Case Studies
- Answer aloud, timed: Given a specific software architecture, how would you optimize its performance?
- Answer aloud, timed: How would you handle a situation where a teammate disagrees with your approach to a problem?
Deliverable: Spoken answers to 2 reported Problem-Solving / Case Studies question(s), under time.
Day 7 — Answer out loud: Behavioral / Leadership
- Answer aloud, timed: Can you describe a situation where you had to collaborate with others to achieve a goal?
- Answer aloud, timed: How do you prioritize tasks when working on multiple projects?
Deliverable: Spoken answers to 2 reported Behavioral / Leadership question(s), under time.
Behavioural preparation
Behavioural rounds judge the decision you made and what it cost.
What are your experiences with version control systems such as Git?
Medium · Technical / Domain Questions
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
How would you handle a situation where a teammate disagrees with your approach to a problem?
Medium · Problem-Solving / Case Studies
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Describe a time when you had to learn a new technology quickly to complete a project.
Medium · Problem-Solving / Case Studies
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Can you describe a situation where you had to collaborate with others to achieve a goal?
Medium · Behavioral / Leadership
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
How do you prioritize tasks when working on multiple projects?
Medium · Behavioral / Leadership
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Describe a time when you received constructive criticism. How did you respond?
Medium · Behavioral / Leadership
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?