Quiz on dp/////////////////////////////////

ques 1
why complexity of this code is exponential when dp[m][n]!=-1
statement is written