Amazon interview question

Write an algorithm for searching a binary tree.