Intuit interview question

ReverseLinked List, Trees