Pregunta de entrevista de AmeriHome Mortgage

Leetcode medium with strings and characters