Driver code
public static void Main ( string [ ] args ) { int V = 3 ; int [ ] val = { 2 , 4 , 3 } ; int [ ] u = { 0 , 0 , 1 } ; int [ ] v = { 2 , 1 , 2 } ; int n = u . Length ; int k = 2 ; findKthNode ( u , v , n , val , V , k ) ; } }