Function to construct a string having N * N non - palindromic substrings
def createString ( N ) : NEW_LINE INDENT for i in range ( N ) : NEW_LINE INDENT print ( ' a ' , end = ' ' ) NEW_LINE DEDENT for i in range ( N ) : NEW_LINE INDENT print ( ' b ' , end = ' ' ) NEW_LINE DEDENT DEDENT