Algorithm To Push And Pop Element In Stack