Pregunta de entrevista de Citrus Pay

DS, mostly trees and lists with problem solving