I recently appeared for a Google interview. In Round 1, I was asked two questions.
Question 1:
Given a CSV string containing a list of ordered products, find the top K most sold products from the data.
Question 2:
System Design: Design Snapchat.
For Question 1, I was able to solve it partially, but I made a major mistake — I used a max priority queue instead of a min priority queue.
Question 2 was my very first system design interview problem, and unfortunately, I struggled significantly with it.
The interviewer was friendly and gave constructive feedback on my coding mistake.