I received interview call from Microsoft (Bangalore) for CRM team, SDE1 position for 1.5 year experience.
Round 1: 1 hour
It was a GD like interview, with multiple people in same room given same question and interviewer was discussing individually with every person.
Given 2 arays if integers, sort the first array based on order of 2nd array.
<https://www.geeksforgeeks.org/sort-array-according-order-defined-another-array/>
I started with brute force approach, then optimized to binary seacrh and then hashmap
Round 2: 1 hour
Same as previous round, one interviewer, multiple candidates same question individual discussion.
If you have a stream of incoming characters, reverse and print the string as soon as input is finished. Write a code for same