Zendesk Interview Question

They gave an array question and the other one is just a less than an easy leetcode question.