Meta Interview Question

Basic Python leetcode question asking for array manipulation