Subarray Sum II(LintCode 404):

Problem