That was funny to go pen & paper to do the reversal of the linked list, C style, like in the old days.
(aka, Java coding is tasteless)
(aka, Java coding is tasteless)
The language isn't important here, it's knowing the algorithm and being able to put your ideas into code.
You could ask the same exact question in Java and you should be able to get the same answer from people.
> reverse [1,2,3,4]
or if I couldn't use the Prelude (yikes!) reverse [x] = [x]
reverse (x:xs) = reverse xs ++ [x]
> reverse [1,2,3,4]
The problem is that linked list traversal is a solved problem. Why not throw a novel and interesting problem at candidates? That way you could gain some insight into how they go about solving problems instead of how good the candidate is at memorizing other people's solutions that they could just as easily look up in a search engine in a few minutes.