Determine if a multiple-sum subarray exists | Adobe Interview Question