text: In reverse ( ) , the first parameter is iterator to beginning element and second parameter is iterator to last element plus one .
code: reverse ( arr , arr + start ) ; reverse ( arr + start , arr + n ) ; reverse ( arr , arr + n ) ; }