Print the required permutation
for i in range ( 1 , L ) : NEW_LINE INDENT print ( v1 [ j ] , end = " ▁ " ) NEW_LINE j += 1 NEW_LINE DEDENT for i in range ( L , R + 1 ) : NEW_LINE INDENT print ( v [ f ] , end = " ▁ " ) NEW_LINE f += 1 NEW_LINE DEDENT for i in range ( R + 1 , N + 1 ) : NEW_LINE INDENT print ( v1 [ j ] , end = " ▁ " ) NEW_LINE j += 1 NEW_LINE DEDENT return NEW_LINE