Strange Swaps --Insomnia 2018 (Rated) Editorial (Unofficial)

A simple approach to append all elements in an empty list (keeping in mind the constraints), thereafter popping out elements in a similar fashion and here comes the answer :stuck_out_tongue:

Here is the diamond pattern :

alt text

Solution