BrowserStack Interview Experience - SDE 2
- Posted
- 21 May 2025
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)
- 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?
- 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.
- 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
- 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] - 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?