Adobe Interview Question

have a easy-medium string manipulation question