checking mirror image of elements of sorted copy array and equivalent element of original array
if ( not ( arr [ i ] == cp [ i ] ) and not ( arr [ n - 1 - i ] == cp [ i ] ) ) : NEW_LINE INDENT return False NEW_LINE DEDENT return True NEW_LINE