text: Function that inserts all the Strings from the given array in a set and calls the recursive function to find the minimum count of subStrings str can be splitted into that satisfy the given condition
code: static void findMinSubStr ( String arr [ ] , int n , String str ) {