Number of six-digit numbers such that any digit that appears in the number appears at least twice, where the digits of each number are from the set `{1, 2, 3, 4, 5},` is (Example 225252 is valid but 222133 is not valid)
A. `1500`
B. `1850`
C. `1405`
D. `1205`