Code For Push And Pop Algorithm