Can someone help? What does this child-parent-child really mean?

On the other hand, the path can be in the child-Parent-child order, where not necessarily be parent-child order.

Example 1:

Input:

1

/

2 3

Output: 2

Explanation: The longest consecutive path is [1, 2] or [2, 1].