Java Program Queue Using Stack In Python