solved MaxPath of binary tree