Driver code
public static void main ( String [ ] args ) { String A = " abcbbcdefxyz " ; String B = " acdxyz " ; int b = 5 ; int m = 2 ; if ( isPossible ( A , B , b , m ) ) System . out . println ( " Yes " ) ; else System . out . println ( " No " ) ; } }