Infosys Interview Question

Graph based question,tree based question probability