Infosys interview question

Subarray sum equal to k