Second Maximum Element In An Array Leetcode