結果 : define following algorithm and flowchart with suitable example