IBM interview question

Question on Trees and Graphs