Segment Tree Query(LintCode 202):

Problem