4 test cases are passing and 1 is giving TLE can u tell why, please

hello @vibhor1007
use memoisation to pass all the test cases.