leetcode 20131106 tree related