Ramp interview question

New Grad, BFS traversal for api nesting