Leetcode Stack Using Array Python Definition Syntax