Cisco interview question

String reversal