Amazon interview question

implement matrix multiplication, discuss complexities