Solution link : https://www.codechef.com/viewsolution/29764315
Problem link : https://www.codechef.com/FEB20B/problems/EXPCH
Why am I getting TLE and WA in spite of using o(n) logic. My code is passing the first two subtests. Any help would be appreciated.