commit for tree-related interview questions