IBI Group Interview Question

asked about basic algorithems (bfs / dsf).