Question

The function \(S(n)\) is defined for positive integers \(n\) by \[S(n) = \text{sum of the digits of }n.\] For example, \(S(723) = 7+2+3=12\). The sum \[S(1) + S(2) + S(3) + \dots + S(99)\] equals

  1. \(746\),

  2. \(862\),

  3. \(900\),

  4. \(924\).