Pergunta de entrevista da empresa Arista Networks

Implement a function to detect if a string was a palindrome, in C.