Abridge interview question

They asked me an easy-level LeetCode algorithm problem.