Microsoft Interview Question

Typical array manipulation questions from leetcode.