Algorithm For Push And Pop In Stack