Microsoft L62 onsite Redmond WA | REJECT
Just wanted to share my (awful) onsite interview experience.
NOTE: Not going to give away direct questions as I signed NDA, so will only be mentioning the pattern.
Round 1:
OA on codility, cleared, all 3 questions were around binary search, queue and stack, so easy-medium, if you would have done Neetcode? yea more than enough
Onsite:
Round 1:
We started with 2 behaviroal questions. This interviewer seemed pleasant to talk to, and was really patient with me.
SIDE NOTE: So, my recruiter never mentioned (on phone or on email) about this LLD round, obviously I wasn't prepared(only prepared for SDI as this was mentioned explicityl in my email :shrug:).
And, it was something about Logging framework, I sppoke about some things, asked minimal set of requirements, wrote somethin in comments, the interviewer was very patient with me, and he did try to ask follow up questions on my thought process, and which i tried to answer to the best of my knowledge, I did realize that this is gonna be a failure on my part, and well we ran out of time.
Round 2:
This is where things get really really really interesting, the person comes in, asks me who are you? LOL, I mention my name, they think they are in the wrong meeting room???? I told him with whom i just finished my interviews, so somehow they realize that this is a hiring event they were invited for, and now they have to interview me, LOL, so he introduces himself, turns out he is a big wig at MS, I kind of get (and am already anxious) panicked.
He goes onto write something about what he & his team does, or what his day to day job involved(it was related to Networking in Datacenters, to be honest really cool job), so he posed a day to day problem that he and his team usually have to perform, so imagine you have machines coming up or going down, how would one assign ip addresses to them? that was something the problem was about i.e. assigning ip addresses.
Now, here is what he does next, pastes a function definition, doesn't mention the return type for the function, & the types on the parameters of the function are missing too, and then asks me to implement it.
me: Ok, I start asking clarifying questions, such as(and not limited to):
me: so whos calling the function, and from where? is it going to get called from api, or down at the library level? I would like to divide this problem into a). coming up with types for the params, and then b). actually solving the problem.
him: just some function getting called don't worry about it
me: ok, so in order to make a initial brute force pass, I will make the return type to be a interface or some concrete collection such as a List or a Map, and keep the params to be interfaces too, (there was a param in the function definition that was going to take in an ip address, but there wasn't a ttype associated with it I had to come up with a type for an IP address). I mentioned that a String type or a class level object could be used since the toString() method could be leveraged for serializing and deserializing, so i will start with using String for an ip address, since we don't know if its ipv4 or ipv6 and implementation will need to handle it.
him: no no no no, thats not how we do ok? how will you add to ip address? how will you represent ip addres? how will you perform math operations on them?
me: ok, fair enough, so once we have determined a v4, or v6, we can parse the string into a string array by splitting on : and deal with each number inidividually, this will be compute intensive, and we can work on making it efficient later on since this is just a first pass
him: no no no, how will you add 1 to string?
me: ....., uh, sure so we convert to int, and do +1 ?....
him: what happens when you 2+1?
me:.....(at this point, I gave up metally, to most of you this might think otherwise, but it was tiring to go back and forth and keep on reminding him this is brute force, or whether he wanted me to keep thinking out loud, mind you all we were ONLY talking about function parameters!!!).
him: ok ok , forget that, so how is size of ip?oh also, im in conversations with other people, for some reason they are asking me to join to other meeting.. so im chatting with others too
me: 32bits, or 4bytes?
him: no no no , is it ipv4, or ipv6? so lets say 32 bits, now can we represent this in an integer?
me: yes
him: ok, so lets say you have this function done, can you describe to me how would you solve it?
me: so this seems to be just checking if an ip is available or not ? and a set will be able to tell me in log time about this, hence...
him: ok ok , so how would you iterate over the set?
me: uh, we usually don't iterate over sets, but seems like an iterator would be possible?
him: no no no, can you not use a loop?
me:..... uh, but we need to iterate..
him: no no , image i have an i init to 0, and we can just increment i...
me:oh! ok..(i lost it here)
him: ok.., lets stop here, i need to goto other meeting
Round3:
My brain is cooked. But, this interviewer was a blessing in diguise.
We started with 2 behaviroal questions.
This time it was another coding round, it was around a popular stack problem. I wrote the code(took some time to handle edge cases), but eventually wrote a bug free code, did a dry run with multiple test cases, and interviewer was satisfied.
Round 4:
Yet again 2 behavioral rounds, and yet another coding round. This time it was a modified version of merge intervals. I messed up here since i was already feeling bad about myself after what the interview rounds turned out to be, and how I had been performing, and at one point, I was so engrossed in this problem, that god knows why, i spoke about adding a PriorityQueue ???? (when it wasn't at all needed ). Yep, so the interviewer had to chime in and say, what? why are we using a queue? you are almost there, just think of something to iterate you over the overlapping intervals, and you have got your code?
Unfortunately, time ran out, and I got to ask him some questions on my end.
Verdict: what else? got a reject, recruiter never mentioned any feedback, nothing.
I already feel tired writing about all of this, this was my first ever FAANG/MAANG like interview and absolutely hate myself for not "reading the room" if you will.
I am preppping harder than before, and gonna do the following top 5 areas of improvement that I think of:
Sorry for a lengthy post folks, but appreciate this community for helping folks like me improve. Hoping(and I know I will) to make another post one day wherein I am happy, content, and able to share a happy news.