Algorithm Of Push And Pop In Javascript 175