Cisco interview question

It was a coding challenge