Cisco Interview Question

First leetcode question was a sliding window problem.