Renaissance Learning interview question

Given a tree collection, write a method to traverse a tree for a given parameter.