結果 : non recursive algorithm in data structure