Intuit Interview Question

Mostly about trees and linked list