Number of Derangements on Finite Set/Examples/10

Example of Number of Derangements on Finite Set
A correspondent writes $10$ letters and addresses $10$ envelopes, one for each letter.

In how many ways can all the letters be placed in the wrong envelopes?

Solution
From Number of Derangements on Finite Set: