FactSet interview question

About trees/ recursion & iteration / reading code