Algorithm To Push And Pop In Python W3schools