First element is the leftmost minimum in a sorted array
document . write ( " " + 0 + " " ) ; document . write ( " " + getRightMin ( arr , n ) + " " ) ; document . write ( " " + getLeftMax ( arr , n ) + " " ) ;