Difference between the depth of the two given nodes
let diff = level [ b ] - level [ a ] ; while ( diff > 0 ) { let log = parseInt ( Math . log ( diff ) / Math . log ( 2 ) , 10 ) ; ans = Math . max ( ans , mx [ log ] [ b ] ) ;