Can anybody explain why my this code giving WA for large datasets. link - https://www.codechef.com/viewsolution/17840444