Reverse

Let's play a game ...

Run 4

Input

10 13 8 9 17 18 11 4 15 1 5 16 14 12 6 2 3 7

Possible Output

Remember, for this challenge, there might be more than one valid output.

6 18 7 16 7 15 14 4 13 12 2 11 7 9 2 8 3 7 2 6 5 4 2 3 2