結果 : first and last position of element in sorted array leetcode solution