Alibaba Group Interview Question

String problem in LeetCode. Some basic list operation in Python should suffice.