# [Pyth][1]: 23 bytes Ju+G*]GHQYjbmj\ msqdkJJ Input is a list of integers, like `[3, 2, 1]`. Try it online: [Pyth Compiler/Executor][2] Uses a quite similar idea as randomra's J code. [1]: https://github.com/isaacg1/pyth [2]: https://pyth.herokuapp.com/