Capital One Interview Question

Asked about trees and a greedy problem.