UVa problem: Amazing - Graph traversal