tree level sum
question 17.11
question 17.12
delete dupilcates