Find the largest number with given number of digits and sum of digits


This is a companion discussion topic for the original entry at http://iq.opengenus.org/find-largest-number-with-given-number-of-digits-and-sum-of-digits/