Adobe interview question

have a easy-medium string manipulation question