Microsoft SDE-2 Interview | Hiring Drive
Company: Microsoft
Role: SDE II
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
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 permutation 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 wanted to know about my approach 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 in: How I identified 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 questions on almost every line of code which I was writing. This round also went pretty well for me. In the end, he seemed satisfied with my approach.
I was informed by the HR that if feedback of these two rounds was positive, then only they would schedule the 3rd round.
Got a call after 1 hour that feedback was positive, they would schedule my 3rd round.
Round 3: HLD
Interviewer asked about my current projects in my current company. But since they are embedded side, he did not seem 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 experiences but in none of them this question was mentioned there. For some time I was blank, I didn't have any idea how to proceed here.
I asked some questions. After clarifying, he told me that he wanted 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 because it has some limit so it can only run a specific number of jobs. Once those are complete, then we can push other jobs. (We don't know for how much time a job is going to run, so we have to ask for the status to the processor, is it free to run a job or not?)
As I told you earlier, I am currently working in the 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, the interviewer told me that my design was good but still he seemed unsatisfied. Surprisingly, I got a call from HR after 5 mins that they would be scheduling the Hiring Manager round as feedback was positive.
Round 4: Hiring Manager
It was already late that day, around 8 PM, so he told me that the round would be of 30 mins only: 15 minutes for his questions and 15 mins for my questions (if I wanted to ask some questions).
He asked me why I wanted to switch? I told him that I am currently working in an embedded side company but my interest is in the backend side, hence I want to switch.
He asked me a question: We have developed a 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 every time some app uses it. So what type of API will you 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 the Transport Layer?
I told him that I would be passing Device ID, Application ID (which app is using this library, since there can be many applications in mobile), event_type, Date, time in that API.
For the second question, I was not able to recollect at that moment what optimization we do at the transport layer, so I was not able to answer this question.
After this, I asked him some questions related to the tech stack which they used at Microsoft, which language etc.? It seems he didn't like my question :) He told me that "tech stack" 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, I got a mail from HR saying that feedback was NOT positive. :(
Not sure what exactly went wrong, I think it happened because of the High Level Design round.
HELP
I was trying for almost a year to switch my domain from embedded to web development side, but it seems every company gives preference to the previous work (which is fair enough if you think from their perspective).
Need your suggestions how to switch domain?
Also if you can give some answers to HLD and Hiring Manager round questions, it will be great.