OPPOSITE - EDITORIAL

https://www.codechef.com/viewsolution/20452504
Find the error and provide the test case for which it fails please.