Qualcomm Interview Question

Write a program in C to identify the longest palindrome in a string.