Cisco interview question

Write a string reversal function