Algorithm For Push And Pop Operation On Stack