Leetcode Stack Using Array Algorithm