Cisco interview question

Lots of 2D array problems.