Valeo interview question

how do you multiply 2 matrix. find shorted path.