Write Algorithm For Push And Pop In Stack In Java