After seeing the problem, I fired up textmate and started writing C pseudo-code to do it. I started off with
first_item = l.first();
next_item = first_item.next();
Then I started writing the loop, and somewhere in there, I got confused. And then a wave of panic came over me - shit, maybe you can't do this. I shook off the thought, deleted my code, and restarted. At some point, I realised that I was always pointing at the first element. My stomach sank and I had this dreadful feeling - okay, you kind of suck as a programmer. Then my mind went blank, and I wanted to switch over and see if the answer was there.And that's with NO PRESSURE AT ALL. With someone watching me, I'd probably not even have been able to get the loop right.
I have never written such a loop, but it's basic stuff, I can do this anytime. But just a little bit of pressure made me royally fuck up.
Programming is thinking - you need to juggle shit in your head - if at the same time you are paying attention to what a HIRER is doing or saying, it will totally smash this ability to do shit in your head.
Your programming exercise probably selects for calm people, not for good programmers.