Algorithm For Stack Implementation Using Array In Python