Hiver Interview Question

Sliding window and array duplication