Cisco interview question

A question about matrices and pattern matching.