Driver Code
let root = newNode ( 1 ) ; root . left = newNode ( 2 ) ; root . right = newNode ( 3 ) ; root . left . left = newNode ( 4 ) ; root . left . right = newNode ( 5 ) ; root . right . right = newNode ( 6 ) ; let node1 = 5 ; let node2 = 6 ; document . write ( sumOddNodes ( root , node1 , node2 ) ) ;