Leetcode Queue And Stack In Python Code