Task about shortest path between two nodes in binary tree