Lime Interview Question

Write an algorithm to recursively search through a tree and return some stuff accordingly.