結果 : kth max and min element in array leetcode