Google interview question

Max Ptah in a tree