Say I have to write 5 emails to 5 people: Al, Ben, Charlie, Dan, Eli. Each email starts with the person's name (i.e., "Dear Al").
Mistakenly, as it was late at night, I wrote the To section to the wrong person (example below).
Question: what is the probability that all emails will reach to the wrong person?
Is this type of questions relates to the Inclusion–exclusion principle? If so, how would you solve it?

Permutations in which every person gets the wrong email are called derangements, which you can read about on that wiki page. The answer is the number of derangements of $5$, $!5 = 44$, divided by the number of permutations $5! = 120$. So $$ \frac{!5}{5!} = \frac{44}{120} = \frac{11}{30}. $$ For more detail you should refer to counting derangements, but you can use inclusion-exclusion to derive $$ !n = n! \sum_{i=0}^n \frac{(-1)^i}{i!}; $$ in particular \begin{align*} !5 &= 5! \left( \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \frac{1}{4!} - \frac{1}{5!} \right) \\ &= \frac{120}{2} - \frac{120}{6} + \frac{120}{24} - \frac{120}{120} \\ &= 60 - 20 + 5 - 1 \\ &= 44. \end{align*} Also there is an elegant formula for $n \ge 1$, $$ !n = \left\lfloor{\frac{n!}{e} + \frac12}\right\rfloor $$ So you could also have gotten the answer by taking $120/e \approx 44.1455329406$, rounding to $44$, and dividing by $120$.
SEE ALSO: 1, 2, 3, 4, on mathSE.