How to find kth largest element each time where k will vary and array is modifiable. That is you can add new elements to the array array can have duplicates.
for example say array is 10 , 20 , 15.
2nd largest = 15
add 17 to array
array becomes 10 15 17 20
3rd largest = 15
Q <= 10^5.