Addepar Interview Question

Subarray sums equals K, one other palindrome question.