Infosys Interview Question

Subarray sum equal to k