Pinterest Interview Question

4 coding questions about arrays and subarrays