Cadence Design Systems interview question

The asked to write a code for swapping of two strings without temp variable and regular expression and mostly on the projects mentioned in resume.