Cisco interview question

String manipulation, basic array questions.