The question goes like: There are n people in a row, how many ways are there to rearrange them, such that for all $0 \le i \le n-1$, the people who stood in original (i+1)th place, is not standing right next to the original people that was in i'th place.
My approach: i was thinking about inclusion exclusion principle. |Ai| - the number of ways to rearrangee the people in a row, such that i and i+1 standing together. now im stuck on the case of $|A_i \cap A_j|$, because there are two possibilities, for example, if i have the row $1 2 3456$, i can either choose 12 34, or 12 23. How can i overcome this issue? thanks in advance, because I'm not certain on how to calculate $|A_i \cap A_j|$ and so on.