How do know - and how did you figure out - that swapping the elements of "aaa bbb cccc eee dddd ffff gggg sss qqq ertdfg" yields "bbb aaa eee cccc ffff dddd sss gggg qqq ertdfg"?

Before you write...