Valid Binary Tree in Nested (XYZ) Notation

Company: INTEL

Difficulty: medium