Antrazal interview question

Priority queue, DSA , 2 sum