Amazon interview question

Leetcode easy, it was array related