How to solve this question ( Without using DP You can use Recursion + Memorization )

Problem Name :- Go Go Home

Please don’t solve it using dp try to use recursion + memorization
or any other approach .

Anyone Please help !!!