1 / \ 2 3 / \ 4 5 / / \ 6 7 8
root = newNode ( 1 ) NEW_LINE root . left = newNode ( 2 ) NEW_LINE root . right = newNode ( 3 ) NEW_LINE root . right . left = newNode ( 4 ) NEW_LINE root . right . right = newNode ( 5 ) NEW_LINE root . right . left . left = newNode ( 6 ) NEW_LINE root . right . right . left = newNode ( 7 ) NEW_LINE root . right . right . right = newNode ( 8 ) NEW_LINE convert ( root ) NEW_LINE print ( " Traversal ▁ of ▁ the ▁ tree ▁ converted " , " to ▁ down - right ▁ form " ) NEW_LINE downRightTraversal ( root ) NEW_LINE