Workday Interview Question

One question about manipulating strings