Cisco interview question

First leetcode question was a sliding window problem.