Algorithm For Implementing Stack Using Array In Python