( left + 1 ) : Count of elements removed from the left ( N - right ) : Count of elements removed from the right
if ( leftTaken + rightTaken > ( left + 1 ) + ( N - right ) ) { leftTaken = left + 1 ; rightTaken = N - right ; } break ; }