489C : GIVEN LENGTH AND SUM OF DIGITS...