Driver code
public static void main ( String [ ] args ) { int N = 6 ; List < String > A = Arrays . asList ( " aab " , " abcac " , " dffe " , " ed " , " aa " , " aade " ) ; System . out . print ( getCount ( N , A ) ) ; } }