Driver Code
let arr = [ 2 , 7 , 5 , 3 , 0 , 8 , 1 ] ; let n = arr . length ; document . write ( " " + " " ) ; printArray ( arr , n ) ; document . write ( " " ) ; document . write ( " " + " " + " " ) ; findSurpasser ( arr , n ) ;