結果 : explanation of algorithm and flowchart