Here has a three-digit password. It satisfies all constraints below:
682
: One correct digit in the correct position.614
: One correct digit in the wrong position.206
: Two correct digits, neither in the correct position.738
: No correct digits.870
: One correct digit in the wrong position.