Problem

Return {b, a} from two ints.

Examples

  • reversePair(1, 2) -> [2, 1]
Compile and test (Ctrl+Enter)