C3 AI Interview Question

some string / list manipulation