Infosys interview question

Matrix Chain Multiplication was asked.