$\mathbf{\text{NOTE=}}$ I give this answer for showing what you can do for more advanced questions .
I see that you have a problem with how many number of special character , digit and letters must be and the order of them in password. Hence , in your approach , you are missing very important thing , it is the location of different types of integrents.
What i meant by "the location of different types of integrents." is that the password $L-D-SC-SC-D$ is different from $D-L-L-SC-L$ where $L,D,SC$ means letter, digit , special character , respectively.
Then , how we handle this situation ? We can calculate the situations exhaustively such that $1$ SC , $1$ D , and $3$ L etc. As you see ,this is very cumbersome even for $n=5$. Then , we need a shortcut to get rid of this torturus process .
So , who is our hero to save us from this swamp ? The answer is exponential generating functions.
Lets say that the exponential generating function of special characters is $$\bigg(x + \frac{x^2}{2!} + \frac{x^3}{3!} \bigg)$$ we start from $x$ and end in $x^3$ , because the repetition is not allowed and it must appear.
Now , we should add some coefficients to this exponential generating function , the coefficients will be the permutatitons of the characters ,according to the exponential such that $$\bigg(P(3,1)x + P(3,2)\frac{x^2}{2!} + P(3,3)\frac{x^3}{3!} \bigg)=\bigg(3x + 3{x^2} + {x^3} \bigg)$$
Lets say that the exponential generating function of letters is $$\bigg(1+x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!}\bigg)$$ We start form $x^0 =1$ and end up $x^4$ , because there is not any restriction over it. Now , place the coefficients to find the permutatitons according to the exponential such that $$\bigg(P(26,0)1+ P(26,1)x + P(26,2)\frac{x^2}{2!} + P(26,3)\frac{x^3}{3!} + P(26,4)\frac{x^4}{4!}\bigg)$$
It is equal to $$\bigg(1+ 26x + 325{x^2} + 2600{x^3} + 14950{x^4}\bigg)$$
Lets say that the exponential generating function of digits is $$\bigg(1+x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!}\bigg)$$ We start form $x^0 =1$ and end up $x^4$ , because there is not any restriction over it. Now , place the coefficients to find the permutatitons according to the exponential such that $$\bigg(P(10,0)1+ P(10,1)x + P(10,2)\frac{x^2}{2!} + P(10,3)\frac{x^3}{3!} + P(10,4)\frac{x^4}{4!}\bigg)$$
It is equal to $$\bigg(1+ 10x + 45{x^2} + 120{x^3} + 210{x^4}\bigg)$$
Now , find the coefficient of $x^5$ in the expansion of $$\bigg(3x + 3{x^2} + {x^3} \bigg) \times \bigg(1+ 26x + 325{x^2} + 2600{x^3} + 14950{x^4}\bigg) \times \bigg(1+ 10x + 45{x^2} + 120{x^3} + 210{x^4}\bigg) $$
After that , multiply it by $5!$ , it is the result.
So , $$5! \times 198765 =23,851,800$$