GSA Capital interview question

Algorithm for multiplying a sequence of matrices