Groww interview question

DS algo - hashmap & priority queue