Subarray With Given Sum Hackerrank Problem