Use array to save the path in TreeNode for Triediagram and accept.