Microsoft SDE-2 Interview | Hiring Drive

Anonymous User
1093
Dec 23, 2022
Dec 24, 2022

Year of Experience: 4 years in a product based company.(Embedded domain).
Education: Masters from IIT in computer science, Bachelors from Tier-3 College in computer science

HR contacted me on linkedIn regarding this job opportunity in Microsoft for SDE-2 position.
Got the test link on 9th of December. Completed the test on 13th December. Got a call next day that i have cleared the test and interviews will be on 17th December. 2 questions on test, both are medium level. One from Tree, One from Strings.

17th December: Interview Day
Round1: Coding Round

Interviewer told me he will be asking 2 questions.

  1. Spiral traversal of Matrix

  2. Next premutation of an array
    (You can find both questions on leetcode)

  3. Number of turns to reach from one node to other in binary tree.

Since i was able to solve these questions in 40 minutes. He asked the 3rd question. He only wants to know about my approch and pseudo code for the 3rd problem. Able to solve all the questions in this round.

Round2: LLD
Design Snake and Ladder Game.

Interviewer was only interested How i indentified objects ? How I am going to design a class ? What are the data structures i am going to use, Why I am making a method private, why not public ? How initialization of game board will happen, How the game will start? How i am going to decide which player will be Winner ? How i am checking if there is a snake or ladder at any position ?

He was asking question on almost every line of code, which i was writing. This round also went pretty well for me. In the end,he seems satisfied with my approach.

I was informed by the HR that if feedback of these two rounds are positive than only they will scheduled the 3rd round.

Got a call after 1 hour that feedback is positive, They will schedule my 3rd round.

Round 2: HLD
Interviewer asked about my current projects in my current company. But since they are embedded side, so he did not seems interested in them :)
Soon he moved to the question.

Design a task scheduler.

To be honest with you guys, i was expecting some standard High level design question. I read multiple microsoft interview experience but in none of them this question was mentioned there. For some time i was blank, i didn't had any idea how to proceed here.

I asked some questions after clearifying he told me that he want me to write a code where multiple threads are working and scheduling the jobs and making sure that we did not push too many jobs on a processor beasue it has some limit so it can only run specific number of jobs. Once those are complete them we can push another jobs.( We don't know for how much time a job is going to run, so we have to ask for the status to processor that is it free to run a job or not).

As i told you earlier, i am currently working in embedded side. I use C in my current company and we don't use this multithreading concept there. So i tried my best to write code in java but i was not able to solve the question properly.

In the end interviewer told me that your design is good but still he seems unstisfied.
Surprisingly i got call form HR after 5 mins that we will be scheduling the Hiring manager round as feedback is positive.

Round 4: Hiring Manager
It was already late that day around 8PM, so he told me that round will be of 30 mins only. 15 minutes for his question and 15 min for my questions(If i want to ask some question).

He asked me why you want to switch? I told him that i am currently working in embedded side company but my interest is in backend side hence i want to switch.
He asked me a question that We have developed an library and some mobile applications are using that library. So to make it more efficient, we want this library to send logs to our server everytime some app uses it.
So what type of API you will design for this and what will be the arguments in that API ?
When this data will be coming, what can be the optimization you will be doing at Transport Layer ?

I told him that i will be passing Device ID, Application ID(which app is using this library, since there can be many application in mobile), event_type, Date, time in that API.
for the second question, i was not able to recollect at that moment that what optimization we do at transport layer, so i was not able to answet this question.

After this i asked him some question related to tech stack which they used in microsoft, which language etc ? It seems he does't like my qiestion :) He told me that tech stach is an overrated word, it does not matter as it keeps changing with the requirement. I also agreed to him(What else i can do :) )

In the last he asked me about my location preference as well :)
After 5 days, got a mail from HR saying that Feedback in NOT positive. :(

Not sure what exactly went wrong, i think it happens because of high level desing round.

HELP
I was trying from almost a yaer to switch my domain from embedded to web development side, but it seems every company give preference to the previous work.(which is fair enough if you think from their prespective).

Need your suggestions how to switch domain ?
Also if you can give some answer to HLD and Hiring manager round questions, it will be great.

Comments (2)