Lcs with 3 strings

test cases are getting failed. why??

For initializing the 3d dp array with 0

int dp[n + 1][m + 1][o + 1] {};  //either do this.
// memset(dp, 0, sizeof(dp));   // or this

= {0} work only for 1D arrays. You might have used that in one dimensional arrays.

Change this and then check