Got a call from HR, first interview after 2 days, interviewer was very friendly, was very patient enough to answer my queries when i did not understood the DS question well. was asked few questions about my previous internships and then followed by 2 DSA question (leetcode easy/ medium).
Got call from HR next day, scheduling next interview day after tommorrow, asked me design a leaderboard which had 3 functions
1) getRank(String userId) (returns rank of a userId)
2) addScore(String userId, int score)
3) getRange(int startRank,int endRank) (returns userIds in the given rank range)