As part of an Incedo coding assessment, implement a function that swaps two integer values without using a third variable or temporary container. The function must return the values in reversed order.
Use arithmetic operations to perform the swap. The inputs may be positive, negative, or zero, and they may have the same value. Do not rely on string conversion, lists, dictionaries, or other auxiliary storage.
Implement swap_numbers(a, b):
a and b.[b, a].Python integers have arbitrary precision, so arithmetic overflow does not need to be handled.
def swap_numbers(a, b):