PermuLogic

A puzzle game by Riccardo Stella
Arrange from position 1 to 5:
Rules: