Algorithm For Stack Using Array Implementation In Python