Philips interview question

DSA- Intermediate level including graphs and trees