Lenze interview question

Array based questions of leetcode.