Pergunta de entrevista da empresa Radware

given array of integers, and a number k, find the subarray sum to k.