Epsilon interview question

Based on Trees DSA Concept