D2L interview question

Nothing crazy. Debug this function, what's good and bad about this API/class, reverse this linked list.