SmartSoC Solutions interview question

C programming - palindrome program and dynamic memory allocation