human
Generate a String of having N * N distinct non | Function to construct a string having N * N non - palindromic substrings.
Driver Code"
Solution in Python:

Can you provide a code to generate a String of having N * N distinct non and the other steps required?
assistant
#Here is code to generate a String of having N * N distinct non and the other steps required.
 def createString ( N ) :
	for i in range ( N ) :
		print ( ' a ' , end = ' ' )
	for i in range ( N ) :
		print ( ' b ' , end = ' ' )
N = 4
createString ( N )