For A = 0; output should be zero


#1

For A = 0; output should be zero and not 1


#2

There is only one way to climp zero steps. Also for dp[2] to be equal to 2 dp[1] = 1,dp[0] = 1