Appian Interview Question

Simple array processing. Leet code sliding window problems