To store the minimum and the maximum value in the path from LCA to b
let min2 = Number . MAX_VALUE ; let max2 = Number . MIN_VALUE ; let i = 0 ; let j = 0 ; flag = FindPath ( root , a ) ; Path1 = path ; path = [ ] ; flag &= FindPath ( root , b ) ; Path2 = path ;