To store the minimum and the maximum value in the path from LCA to b
int min2 = Integer . MAX_VALUE ; int max2 = Integer . MIN_VALUE ; int i = 0 ; int j = 0 ; flag = FindPath ( root , a ) ; Path1 = path ; path = new Vector < Integer > ( ) ; flag &= FindPath ( root , b ) ; Path2 = path ;