Can anyone solve this question using Top down approach .I tried alot but not able to do it.I see alot of accepted submission using bottom up but not find any top down .Need help
Question link — https://www.codechef.com/LTIME71A/problems/CHEFRAMI
Thankyou