60, 94, 63, 3, 86, 40, 93, 36, 56, 48, 17, 10, 23, 43, 77, 1, 1, 93, 79, 4, 10, 4


#1

60, 94, 63, 3, 86, 40, 93, 36, 56, 48, 17, 10, 23, 43, 77, 1, 1, 93, 79, 4, 10, 47, 1, 99, 91, 53, 99, 18, 52, 61, 84, 10, 13, 52, 3, 9, 78, 16, 7, 6
k=22

I think 22nd element is 48 but the expected output is showing 52

sorted : 1 1 1 3 3 4 6 7 9 10 10 10 13 16 17 18 23 36 40 43 47 48 52 52 53 56 60 61 63 77 78 79 84 86 91 93 93 94 99 99


#2

The final value is 62 not 6.
i mean the input is 60, 94, 63, 3, 86, 40, 93, 36, 56, 48, 17, 10, 23, 43, 77, 1, 1, 93, 79, 4, 10, 47, 1, 99, 91, 53, 99, 18, 52, 61, 84, 10, 13, 52, 3, 9, 78, 16, 7, 62.