Meta interview question

2 Leetcode Mediums, focused on arrays