ASM interview question

Leet code easy, an array question.