Seclore interview question

Question based on tree traversal and graph