Tally Solutions Interview Question

Swap string without extra variable.