I\'m getting two small unexpected type errors which I\'m having trouble trying to solve.
The errors occur at:
swapped.charAt(temp1) = str.charAt(temp2);
The left side of your assignment cannot receive that value.