Function to print the count of greater elements on left of each array element
function display ( countLeftGreater , N ) { for ( let i = 0 ; i < N ; i ++ ) { document . write ( countLeftGreater [ i ] , " " ) ; } }