title: Getting TLE in Codechef challenge
body: <p><a href="https://www.codechef.com/problems/ADTRI" rel="nofollow">https://www.codechef.com/problems/ADTRI</a>
  please tell me the reason why I am getting tle for the last subtask for this problem.
  here is my code <a href="https://www.codechef.com/viewsolution/8614259" rel="nofollow">https://www.codechef.com/viewsolution/8614259</a></p>