Two easy-medium DSA questions.
The interviewer asked about two points from my resume. I fumbled on them a bit.
Q1. Design a method that takes genre and fires a request to an API which gives a response with movie title and corresponding movie rating of that particular genre, return the top rated movie in that genre. In case of a tie, return smallest lexicographical movie title.
I approached the problem using priority queue with a custom sort function. The API had a query parameter of page number (it was paginated, I had to fetch the response from all pages). The interviewer had to tell me 2-3 times about the problem requirements, that was supposedly a red flag for them.
Round 2 for this position was Bengaluru in-office face to face, the flight tickets was supposed to be sponsored.
Verdict: Not Selected