Function to print the sorted array of string
function printArraystring ( str , n ) { for ( let i = 0 ; i < n ; i ++ ) document . write ( str [ i ] + " " ) ; } let arr = [ " " , " " , " " , " " ] ; let n = arr . length ;