Pergunta de entrevista da empresa DNAnexus

How to reverse a C-array? How to reverse a linked list? How would you go about debugging?