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
def findMinSubStr ( arr , n , string ) : NEW_LINE