Generate a String of having N * N distinct non | Function to construct a string having N * N non - palindromic substrings ; Driver Code
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 N = 4 NEW_LINE createString ( N ) NEW_LINE