Amazon Interview Question

Something that has to do with using sliding window