Microsoft interview question

Trees and graphs in dsa