In round 1, my first impression for the interviewer was not very good. He was sitting on a beachside cafe and was wearing beach costume. He did not seem interested at all for the interview. I was asked below questions:
Tell me about yourself
What has changed over the past 3 years?
At first, interviewer kept it open-ended, then clarified: what changed about you, what did you learn.
One time you regret or could have done differently
Kanban vs Scrum
What is one thing you picked from retro meetings?
What is high performance according to you and how would you measure it?
What is low performance
Give me an example of low performance
I was told initially by HR that I would be asked some code review problems as well but it was purely behavioural. One thing I disliked about the interviewer most was that he did not try to listen my answers and was trying to cut through in between. He just wanted to ask more and more questions OR probably just get done with it.
Round 2 had a nice interviewer. He was calm and welcoming. He gave me below problem:
You are given a list of flights data. Each flight data has several fields identifying a flight including a supplier ID. Supplier is basically a vendor who is selling that flight ticket for a given price. There can be duplicate flights in that data which are being supplied by different suppliers. Identify all unique routes. Now the definition of unique route was not clear at all. Interviewer j ust gave some examples but did not want to explain what is unique route. Finally after lot of back-n-forth, it got clear that a unique route is basically a flight which is being served by 1 or many suppliers & all suppliers bundled into one common csv along with that flight data. This was lot confusing for me but I still solved this. I just used hashmap to hold all the flights data. Key I used was the string of all flight details. This way, for every new flight being added to the hashmap, the supplier would be added to the value array. Finally, by iterating over the hashmap key and values, I can get the required "unique routes" in desired output manner. I wrote code in JS.
Follow up was to find best flight based on given constraints. Constraints were like the lowest price. If prices are same for two flights, pick the one with higher booking history percentage (provided along with flight data) and finally break the tie using the lower value of supplier ID. I was able to solve it too. But then the interviewer wanted me to use filter functions. I told him that there is no need of filtering since we have to check each constraint one by one and hence we can use short circuiting of OR operator. But he was not happy at this point. Rest everything went well.
Within 3 days, I got rejection email. I don't know what went wrong but this was upsetting for me. I believed my interview went really well.