Pregunta de entrevista de IBM

Leetcode style question using a sliding window and hashmaps