Halodoc interview question

one question was on tree