Google interview question

Problems dealing with tree data structure