Wow ! I am not sure how an accepted solution is giving TLE now ! If anyone could figure-out, that would be great.
Upd: Even Codechef Seems to behave similarly. here @vijju123 any reasons for this behaviour on codechef ?