Infosys interview question

Graph based question,tree based question probability