Allshore Technologies interview question

Custom string manipulation coding question