- #1

My Work:

- If there are two people of the same number next to each other in the line, then the permutation of people cannot satisfy the previous condition unless one person is already in the corner.

- If there are 2 people of the same number one person apart, then the condition is not satisfied if a person is already in the corner.