Virtually every programming related interview I have ever participated in, one side or the other, has included some form of logic question you are asked to solve while explaining your thoughts as you work through the problem. Practice these questions now, not when it really matters!
You're in your second interview, an hour tired, and this happens. Put yourself there now and see what happens..
One of the trickiest of the series, try it out.