Giving wrong answer

ques-https://leetcode.com/problems/find-k-th-smallest-pair-distance/solution/

solution-

dindn,t get error
two pointer approach