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: void findMinSubStr ( string arr [ ] , int n , string str ) {