Wipro interview question

Tree traversal and SQL Questions