Longest Root-to-Leaf Path Under the Ancestor-Mean Rule

Company: RockED_19sep

Difficulty: medium