Problem 3663 · Easy
Tally the digits of n and pick the one that appears least often, breaking ties toward the smaller digit.
Open the interactive visualisation