Appian interview question

Simple array processing. Leet code sliding window problems