Algorithm For Queue Using Array In Python