when there will be only four letters in between P & S
then we can arrange P & S at this particular distance 14 times.
And for the remaining alphabets no. of permutations is (10! / 2!)
And thus total No. of permutations will be = (10! / 2! ) * 14
= 25401600
Cheers..........