Arista Networks interview question

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