Path Problem (Dynamic Programming)


i am getting code dumped error.Please tell me where i am going wrong

anyone please do reply asap!!