Oracle interview question

Tree related problems, traversing and dynamic programming