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 ) ; } }