結果 : algorithm to find second largest element in an array