Subarray Sum(LintCode 138):

Problem