Stack Leetcode Easy Problem