Why it is showing runtime

@Muskan-Gupta-598128740703036 you are getting TLE. Initialize dp with -1 as 0 can also be an answer!