Pocket Gems Interview Question

String Parsing, Graph algorithm.