結果 : find second smallest and second largest element in an array python