P.S. I have a working solution on the SO question
# suitescript
c
P.S. I have a working solution on the SO question