Lilt interview question

Easy level leetcode questions, traversing arrays.