Guidewire interview question

Basic tree question