DRW Interview Question

Manipulate a given string to a fixed format