ANUBGC - Editorial

for those who want to see code : https://www.codechef.com/viewsolution/17027483