Interview happened at Zomato Media Private Limited Gurgaon office. Only 1 round happened.
1- first question was implement shuffle method for music player such that songs dont repeat, you can implement that using https://www.geeksforgeeks.org/shuffle-a-given-array-using-fisher-yates-shuffle-algorithm/
2- second was the design of music player, not like Ganna.com, like VLC, single song play, pause, seek, next, prev functions, write all the classes needed to implement this application.
3- few sql queries
4- mongo queries, sharding, indexing in deep. election in case of primary failure.
5- throttling, you have to implement throttling, rate limit of 100 requests in 10sec with sliding window, i.e. any where on time line, not more that 100 requests in 10sec range. https://medium.com/walkme-engineering/debounce-and-throttle-in-real-life-scenarios-1cc7e2e38c68
6- debouncing, like client is giving 10 requests/secs and only last request is valid, all previous are invalid if any latest call is made after them. Implement this.
Result – not selected
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.