I mean, this is the whole point of the dreaded coding whiteboard interview, no? You can't memorize your way out of it, and with any luck the interviewer will be looking at the big picture of how you tackle the problem and what headway you make, instead of sniping at syntax or the names of library calls.