Dropbox Interview Question

They asked a coding question requiring a string manipulation