Vital Labs interview question

Tree VS Graph