Giving TLE for one test case

please help

it is giving tle even if i have commented out recursive and top down approach i.e. it is giving tle for bottom up approach also