Stack Leetcode Easy Array Problems In Python