Well, he wasn't offered the job. So, we'll never know how prepared.
Practice does help for these whiteboarding style questions.
I completed a bunch of https://www.hackerrank.com/ problems prior to my last set of technical interviews and it definitely helped keep me sharp. My day to day CRUD work is rarely helpful in that regard.