Microsoft SDE2 interview experience

Anonymous User
3105
Nov 18, 2025

Hi,
I had applied for the SDE-2 role at Microsoft using their career portal via referral and recruiter reached out to after couple of days and scheduled my interviews (all on same day).

Round - 1: DSA

 Choose Data Structure and define 2 methods
   * save(int num)  ---> store the data 2,5,8,2,8,9,2
   * best() --> Return most frequent & removes it. If there is tie, return the last entered number
   * eq, best() -> 2, best() -> 8, best() -> 2, best() -> 9
  1. I successfully solved the question using doubly link list and maps.
  2. Later realised there is a even better approach using using maps only.

Verdict: Selected (Hire)

Round - 2: LLD

  1. Design Snake and Ladder game - Had to explain the design and implemented 95% of the code as well.
  2. Wasn't able to complete the code but overall had a good discussion with the interviewer and she seemed happy.

Verdict: Selected (Lean Hire/Hire)

Round - 3: HLD

Design a Residential Elevator Control System


You are to design the software system for a single-shaft residential elevator serving Ground + 10 floors (floors 0 to 10).
The system should simulate and control elevator operations — handling user inputs, elevator movement, and display updates — while satisfying the functional, behavioral, and safety requirements described below.


System Context
Each floor and the elevator car have the following:


At Each Floor
Buttons:
   Up button – requests the elevator for an upward journey.
   Down button – requests the elevator for a downward journey.
   Ground floor (0): Down button is disabled.
   Top floor (10): Up button is disabled.
Display:
   Shows the current elevator position (floor number) and its state: UP, DOWN, or STOPPED.


Inside the Elevator Car
Buttons:
   One per floor (0–10) to select a destination.
Display:
   Indicates current floor and movement state (UP, DOWN, STOPPED).


Expected Functional Behavior
Startup & Idle State
   Elevator starts at Ground floor (0) in the STOPPED state, waiting for a request.
Request Handling
   Requests can originate from floors (Up/Down buttons) or from inside the elevator (car buttons).
   The elevator must eventually serve all valid requests; none should be lost or ignored.
Movement Rules
   The elevator moves between floors and stops as required to serve requests.
   It must minimize unnecessary movement, trying to serve requests in an efficient sequence.
   Once moving in one direction, it should normally continue in that direction until no further requests remain that are compatible with its direction.


Physical constraint: the elevator needs at least two floors of deceleration distance to come to a halt, so it cannot instantly stop at the very next floor once moving at full speed.


Display Behavior
   All displays (inside and outside) should be updated in near real time to show:
   Current floor position.
   Current movement state.


Optimization Goals
   Reduce total passenger wait time.
   Reduce unnecessary motion (energy/resource efficiency).
   Ensure fairness – no request should be starved indefinitely.


Safety and Reliability Requirements
   The elevator must not move while doors are open.
   It must never move beyond floor 0 or floor 10.
   The system must allow for emergency stop handling at any point.
   If a sensor or signal fault occurs, the system should transition to a safe halted state rather than continue unpredictably.
   The elevator should resume a consistent and safe state after restart (e.g., following a power failure).


Optional/Extension: Maintenance & Serviceability


Design provisions for servicing and diagnostics:


Maintenance Mode
When enabled:
   Reject new passenger requests.
   Complete current trip safely.
   Move to the nearest floor, open doors, and remain idle until maintenance completion.


Diagnostics
Track and report:
   Fault or safety events.
   Emergency stops or overloads.
   Unusual delays or missed commands.
   Remote or Manual Control (Optional Bonus)
   Expose a conceptual interface for maintenance personnel to monitor or manually control the elevator’s operations.
Assumptions
   Single elevator, single shaft.
   Requests and internal logic handled in software only (no actual hardware integration).
   Timing and motion may be simulated logically (e.g., 1 floor = 1 unit time).
  1. Got confused in the starting as the round was taken for HLD but the question seemed to be LLD based.
  2. Had average discussion with the interviewer about the question and approached the question like the LLD only, wrote code and discussed the trade-offs with him.
  3. Wasn't expecting to get selected in this round but got hire verdict from the interviewer.

Verdict: Selected (Lean Hire)

Round - 4: AA round

  1. This round was taken by a very senior position person.
  2. Discussed about the past experience and resume.
  3. Asked about the most complex I have solved in the past and what was the most difficult part.
  4. Asked me to implement the stoi function in c++. Overall had a good discussion on the edge cases and wrote the code.

Verdict: Selected (Hire)

Compensation: https://leetcode.com/discuss/post/7356659/microsoft-sde2-l61-noida-india-by-anonym-zlpp/

Comments (5)