flowchart and algorithm sample problems - Search