Please check where i am wrong


i am not getting write answer

it give correct output if all element are unique what should i do if reoccurence is ther

in case of repeated elements the element is considered again
like in case

we see 25 and 30 being repeated twice still the 7th smallest is 30