Help me solve this my test case 2 shows wrong ans

Sir, currently I am approaching through Max Heap and returning kth nearest distance but If my approach is wrong then let me know.