browserstack logo
Browserstackยท SDE 2

BrowserStack Interview Experience - SDE 2

Posted
21 May 2025
332 reads

Summary

I interviewed for an SDE 2 role at BrowserStack, which involved 5 rounds covering DSA, system design, machine coding, and behavioral aspects, ultimately resulting in a rejection due to a mismatch in work culture.

How it went

๐Ÿ“… Round 1: DSA + System Knowledge

Project-related discussion System Design / Fundamentals: ๐Ÿ”น What happens when you hit a URL like google.com in the browser? ๐Ÿ”น Which protocol is used and what steps occur in sequence? ๐Ÿ”น What is TCP and how does the TCP handshake work? ๐Ÿ”น How many handshakes does TCP involve? ๐Ÿ”น What does the server send back in response? (headers, body) ๐Ÿ”น What does the browser do with the response? ๐Ÿ‘‰ Parsing HTML โ†’ Creating DOM Tree โ†’ JS Execution โ†’ CSS Styling โ†’ Painting

DSA/Logic Question: โž• Given a programming language that only supports numbers from 0โ€“99, determine if adding two numbers will cause overflow.

โœ… Logic:

remaining = 99 - num1
if num2 > remaining โ†’ overflow

๐Ÿ“… Round 2: Machine Coding Round

Problem: Build a real-time log viewer (like tail -f in UNIX) Task: A server-side program that monitors a large, append-only log file and streams new content in real-time.

A web client accessible at http://localhost/log which:

Displays last 10 lines of the file on page load

Receives real-time updates without needing to refresh

Stays static after load (no continuous reloading)

Constraints: ๐Ÿ”ธ Log file can be several GB โ€” optimize for reading only last 10 lines ๐Ÿ”ธ Do not re-send the full file repeatedly ๐Ÿ”ธ Must support multiple concurrent clients ๐Ÿ”ธ Cannot use off-the-shelf libraries/tools for file tailing ๐Ÿ”ธ Focus on modularity, testability, code quality, and corner cases


๐Ÿ“… Round 3: Engineering Manager Round Topics: ๐Ÿ”น Current role and responsibilities ๐Ÿ”น Detailed explanation of one complete project ๐Ÿ”น Questions based on the project ๐Ÿ”น HLD for scaling the system from Round 2

Verbal DSA Question (Approach Only): You are given an array of temperatures. For each day, determine how many days you'd have to wait until a warmer temperature.

Input: [72, 71, 74, 75, 69, 71, 76, 73] Output: [2, 1, 1, 3, 1, 1, 0, 0]

๐Ÿ”น Some HR questions also discussed


๐Ÿ“… Round 4: Director of Engineering (DOE) Round Topics: ๐Ÿ”น Role in your current organization ๐Ÿ”น Reason for leaving your current company ๐Ÿ”น What challenges are I looking for in the new role? ๐Ÿ”น Example of a team conflict โ€” discussed export feature conflict

Technical Question: ๐Ÿง  How would you count the number of unique words in a very large file, where storing everything in memory (e.g., via a map) isnโ€™t feasible?

๐Ÿ”น A few behavioral/HR questions were also asked


๐Ÿ“… Round 5: HR Round Topics: ๐Ÿ”น Current responsibilities ๐Ÿ”น Team collaboration and working style ๐Ÿ”น Culture fit questions

โŒ Final Outcome: Rejected ๐Ÿ“ฃ Feedback given: You have 5 weeks office regularly โ€” might not align well with BrowserStackโ€™s fully remote work culture.

Questions asked (5)

  1. 01

    What happens when you type a URL in the browser?

    System Design

    What happens when you hit a URL like google.com in the browser? ๐Ÿ”น Which protocol is used and what steps occur in sequence? ๐Ÿ”น What is TCP and how does the TCP handshake work? ๐Ÿ”น How many handshakes does TCP involve? ๐Ÿ”น What does the server send back in response? (headers, body) ๐Ÿ”น What does the browser do with the response?

  2. 02

    Check for Overflow in Limited Range Addition

    Data Structures & Algorithms ยท Easy

    Given a programming language that only supports numbers from 0โ€“99, determine if adding two numbers will cause overflow.

  3. 03

    Real-time Log Viewer (tail -f like utility)

    System Design ยท Hard

    Problem: Build a real-time log viewer (like tail -f in UNIX) Task: A server-side program that monitors a large, append-only log file and streams new content in real-time.

    A web client accessible at http://localhost/log which:

    Displays last 10 lines of the file on page load

    Receives real-time updates without needing to refresh

    Stays static after load (no continuous reloading)

    Constraints: ๐Ÿ”ธ Log file can be several GB โ€” optimize for reading only last 10 lines ๐Ÿ”ธ Do not re-send the full file repeatedly ๐Ÿ”ธ Must support multiple concurrent clients ๐Ÿ”ธ Cannot use off-the-shelf libraries/tools for file tailing ๐Ÿ”ธ Focus on modularity, testability, code quality, and corner cases

  4. 04

    Daily Temperatures

    Data Structures & Algorithms ยท Medium

    You are given an array of temperatures. For each day, determine how many days you'd have to wait until a warmer temperature.

    Input: [72, 71, 74, 75, 69, 71, 76, 73] Output: [2, 1, 1, 3, 1, 1, 0, 0]

  5. 05

    Count Unique Words in a Very Large File

    System Design ยท Hard

    How would you count the number of unique words in a very large file, where storing everything in memory (e.g., via a map) isnโ€™t feasible?

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Browserstack recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!