C3 AI interview question

some string / list manipulation