Beautiful Nodes in a Path-Encoded Binary Tree

Company: PocketFm

Difficulty: easy