Compute sum over consecutive-step subarrays | Google Interview Question