the second largest six-digit number in which no digit appears more than three times

1 answer

largest: 999888
next: 999887