length of remaining String A is less than B 's length
if ( ( x - 1 + a . length ( ) - y ) < b . length ( ) ) { System . out . print ( "NoNEW_LINE"); return ; } if ( fwd [ x - 1 ] + bwd [ y + 1 ] >= b . length ( ) ) { System . out . print ( "YesNEW_LINE"); } else { System . out . print ( "NoNEW_LINE"); } }