Uber interview question

LeetCode Easy - wasn't too bad - just string manipulation