Write An Algorithm For Push And Pop In Python