Second Maximum Element In Array Leetcode