we have
Multiply them together you get
But since all 4 characters cannot be the same, we subtract 8 from 512
answer: 504 combinations
9.3m questions
12.0m answers