Subarray With Given Sum Hackerrank Python