Algorithm To Push And Pop In Microprocessor