Driver code
public static void main ( String [ ] args ) { String A [ ] = { " aaa " , " aa " , " bdc " } ; String B [ ] = { " cccch " , " cccd " } ; int n = A . length ; int m = B . length ; printAnswer ( A , B , n , m ) ; } }