Adobe interview question

Tree and graph questions were asked