Function to count the number of ways to partition the string such that each partition have same number of distinct character
def waysToSplit ( s ) : NEW_LINE INDENT n = len ( s ) ; NEW_LINE answer = 0 ; NEW_LINE DEDENT