My submitted solution: https://www.codechef.com/viewsolution/9929014 I referred to the problem setters solution while solving for fast exponentiation function . The first two test cases passed . The last one — wrong answer (expected TLE) . Where am i going wrong ??