結果 : algorithm flowchart and pseudo code