Algorithm For Display Operation In Stack