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