Cvent interview question

data structure tree