Pregunta de entrevista de Google

Coding problem related to String and Characters (not from Leetcode)