Algorithm For Stack Using Array In Python Declarations And Access