Since array size is 7 , elements should be from 0 to 48
let arr = [ 40 , 12 , 45 , 32 , 33 , 1 , 22 ] ; let n = arr . length ; document . write ( " " + " " ) ; printArr ( arr , n ) ; sort ( arr , n ) ; document . write ( " " + " " ) ; printArr ( arr , n ) ;