Amazon interview question

Online assessment on Hackerrank. Practice sliding window problems and prefix sum problems.