Code Chef …Discuss
As you didn’t post the link of the question. So i assume its from an ongoing contest.
So we’ll try to help you as late as possible.
Post links, because it looks hella suspicious when you don’t.
Anyway, doesn’t this problem have an editorial? It’s a very simple construction and is probably explained there.
I didn’t knew how to post the link of the problem so I posted it in this way
Sorry for being rude, but if incase u don’t know how to post a link u can simply mention problem here . Anybody here having patience will definitely help you.