Workday interview question

One question about manipulating strings