Write swap(a, b) that returns the pair in reverse order as a tuple (b, a).
swap(a, b)
(b, a)
swap(1, 2) → [2, 1]
swap('x', 'y') → ['y', 'x']
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.