Sort last ( N - K ) array elements in ascending order
for i in arr [ : K ] : NEW_LINE INDENT print ( i , end = " ▁ " ) NEW_LINE DEDENT for i in reversed ( arr [ K : ] ) : NEW_LINE INDENT print ( i , end = " ▁ " ) NEW_LINE DEDENT