Senseforth.ai interview question

Given a string array, swap alternating characters without using another array. For example, abcde should result to cdabe.