trees problems in leetcode