FactSet Interview Question

About trees/ recursion & iteration / reading code