Nutanix Interview Question

I was asked one sliding window question from 2 D vector