The Smallest Difference(LintCode 387):

Problem