Seq-recursive sequence tle code link: https://ide.codingblocks.com/s/198777

why is this code giving tle. The same solution is accepted on SPOJ.

@ParvBudh CB machines are slower in comparison to SPOJ machines. If the code passes on SPOJ then its okay, you can move to other questions. You can try for minor improvements , like passing by reference where ever possible, using bit operation etc, but they would not help much. So you may ignore the issue.
If this resolves your doubt mark it as resolved.