Pregunta de entrevista de BeaconFire Solution

Easy leetcode question on strings