CHEFAOR - Editorial

I used dnc only and it passed
https://www.codechef.com/viewsolution/31011842