GSA Capital Interview Question

Algorithm for multiplying a sequence of matrices