Oracle Interview Question

Tree related problems, traversing and dynamic programming