function to check given sequence of root to leaf path exist in tree or not . index represents current element in sequence of rooth to leaf path
public static bool existPath ( Node root , int [ ] arr , int index ) {