Function to check and print if a subsequence which is same as the given subarray is present or not
static void checkSubsequence ( int arr [ ] , int L , int R , int N ) { if ( checkSubsequenceUtil ( arr , L , R , N ) ) { System . out . print ( "YESNEW_LINE"); } else { System . out . print ( "NONEW_LINE"); } }