Not getting any output while submitting

Pranav , you are supposed to solve this question using dynamic Programming since it consists of overlapping subproblems. So make a 1-d dp array and make changes accordingly.

output screen is blank in your ide when i submit this code. But it is working fine on my local

Basically your code will not be submitted using recursion alone only, thus you need to use dynamic programming in your code.