Xealth interview question

Graph and Tree based questions