Getting 0 as ans

i tried of solving the code with bottom up approach but getting 0 as answer in every test case, please correct my code and tell me the mistakes that i done in my code

@shivamgoel150,
I don’t understand your recurrence, you haven’t even used array a any where in your dp…??