Intuit interview question

Mostly about trees and linked list