In the first step, the elements at the four ends move in the sequence
![]()
. In each subsequent step, the elements move in the sequence obtained by rotating the previous sequence through 90
oACW. Also, in each step, the element that reaches the encircled position gets replaced by a new element.