VIT Infotech interview question

Graph, tree in tr round