If the element at index L and R is greater than ( L + 1 ) - th and ( R - 1 ) - th elements
if ( arr [ l ] >= max ( arr [ l + 1 ] , arr [ r - 1 ] ) and arr [ r ] >= max ( arr [ r - 1 ] , arr [ l + 1 ] ) ) : NEW_LINE