TD Interview Question

Something related to String manipulations in Python