Cisco interview question

Write a program to generate a Palindrome