Second Maximum Element In Array Leetcode Problems On Stack