Domanda di colloquio di Infosys

Programming question on strings and swapping