Edge Cases
if ( l == 0 and r == ( N - 1 ) ) : NEW_LINE INDENT print ( "0" ) NEW_LINE DEDENT elif ( l == 0 ) : NEW_LINE INDENT print ( suffix_max [ r + 1 ] ) NEW_LINE DEDENT elif ( r == ( N - 1 ) ) : NEW_LINE INDENT print ( prefix_max [ l - 1 ] ) NEW_LINE DEDENT