結果 : find first and last position of element in sorted array python