Write Algorithm And Draw Flowchart