Algorithm For Stack Using Array Example C