Algorithm For Push And Pop Operation In Stack