How to Make Algorithm and Flowchart from a given problem