Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT root = newNode ( 1 ) ; NEW_LINE root . left = newNode ( 12 ) ; NEW_LINE root . right = newNode ( 13 ) ; NEW_LINE root . right . left = newNode ( 14 ) ; NEW_LINE root . right . right = newNode ( 15 ) ; NEW_LINE root . right . left . left = newNode ( 21 ) ; NEW_LINE root . right . left . right = newNode ( 22 ) ; NEW_LINE root . right . right . left = newNode ( 23 ) ; NEW_LINE root . right . right . right = newNode ( 24 ) ; NEW_LINE arr = [ 14 , 23 , 1 ] NEW_LINE n = len ( arr ) NEW_LINE printForests ( root , arr , n ) ; NEW_LINE DEDENT