Determine if subarray sums to target | Meta Interview Question