Berbix Interview Question

Coding challenge involving string manipulation