Strictly speaking, this is doing too much work.

This will generate both `{state1: 'Alabama', state2: 'Oklahoma'}` and `{state1: 'Oklahoma, state2: 'Alabama'}`. Wheres you only need one or the other to be in your pairs array.

Also, since you're going to be making strings out of the pairs, why not make the strings right here, instead of the intermediate object state?