Kissflow interview question

List and String Manipulations in Python