DSA - Trees And Traversal -HW - task 3