OYO Interview Question

minimum sum path matrix