Question 1175247
.
<pre>

In case (A), there are {{{10^6}}}  different passwords.


In case (B), there are 10*9*8*7*6*5 = 151200  different passwords.
</pre>


You do the rest.