DNAnexus interview question

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