LCA Queries to answer
Query [ ] q = new Query [ 3 ] ; q [ 0 ] = new Query ( 5 , 4 ) ; q [ 1 ] = new Query ( 1 , 3 ) ; q [ 2 ] = new Query ( 2 , 3 ) ; int m = q . Length ; printLCAs ( root , q , m ) ; } }