Generate a String of having N * N distinct non | Function to construct a string having N * N non - palindromic substrings ; Driver Code
function createString ( N ) { for ( let i = 0 ; i < N ; i ++ ) { document . write ( ' ' ) ; } for ( let i = 0 ; i < N ; i ++ ) { document . write ( ' ' ) ; } } let N = 4 ; createString ( N ) ;