Function to check that there exist a arrangement of string such that it doesn 't contains monotonous substring
def monotonousString ( s ) : NEW_LINE INDENT odd = " " NEW_LINE even = " " NEW_LINE DEDENT