Leetcode Stack Using Array In Python Declaration