Pergunta de entrevista da empresa Amazon

Solve this leetcode medium problem involving rolling windows on a string.