This is one reason why it's really not natural for some of us to do whiteboard coding interviews, or even CoderPad, etc. interviews. It's like trying to pee when someone is watching you, although that's not an analogy I would encourage job seekers to make to a hiring manager.