Pregunta de entrevista de BOX Partners, LLC

sliding window based coding question with less time complexity