Count of Smaller Number(LintCode 248):

Problem