Perforce Software interview question

LeetCode questions about strings manipulations