Pregunta de entrevista de Arista Networks

asked some data structure and algorithm Q's, asked me code a simple palindrome in c