Dropbox interview question

They asked a coding question requiring a string manipulation