Pocket Gems interview question

sorting, tree, graph