Closest Pair Problem Leetcode