ezCater interview question

He asked me a string manipulation algorithmic problem