Function to check and prif a subsequence which is same as the given subarray is present or not
def checkSubsequence ( arr , L , R , N ) : NEW_LINE INDENT if ( checkSubsequenceUtil ( arr , L , R , N ) ) : NEW_LINE INDENT print ( " YES " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " NO " ) NEW_LINE DEDENT DEDENT