Gap Inc. Interview Question

Basic string manipulation questions in Python