How to reduce TLE beyond recursive approach?

I am trying to program a problem that asks to compute answer in form of two functions of the form:
answer=A ( B (arg1,arg2))
I have used recursive approach to implement A and B.
But it shows TLE despite simple standard recursive definitions.

Show you code!! The reason can be anything that your any of the recursive call is never returning or taking a lot of time in computation, or may be some other reason.