Please tell where the error is. Question is Min cost path using DP

@gaganpreetsachdev1 hey in your function it will if else if ladder not only if case . ie
at line 13 and 15 make it else if

Still its giving wrong answer

@gaganpreetsachdev1 share your updated code.