I want to reverse a string each two characters with Ruby.
The input:
\"0123456789abcdef\"
The output that I expect:
\"e
"0123456789abcdef".split('').each_slice(2).to_a.reverse.flatten.join('') => "efcdab8967452301"