


If 'N' is 5 and 'K' is 3 and the array is 7, 2, 6, 1, 9
Sorting the array we get 1, 2, 6, 7, 9
Hence the 3rd smallest number is 6.
The first line contains two space-separated integers ‘N’ representing the size of the array and ‘K’.
The second line contains 'N' space-separated integers that represent elements of the array 'ARR'.
Print a single line that contains a single integer which is the 'Kth' smallest element of the array.
You do not need to print anything; it has already been taken care of. Just implement the given function.
We’ll use a max heap of fixed size 'K' to store the elements of 'ARR' and perform a single 'GETMAX' operation to get 'K'th minimum element.