LongChallenge(Sep) - Full Editorial

https://discuss.codechef.com/t/rotatpol-editorial/77547