Arista Networks interview question

It was a coding question regarding a simple algorithm to reformat a given string.