For my YouTube channel, I recorded myself solving the Bowling Challenge. This challenge isn't entirely new to me, I've solved it once before as part of the hiring process for an employer. That was several years ago however, and while I remembered that this was an entertaining challenge, I remembered little about how I'd solved it.
In the video, I make several mistakes, and several poor design decisions, which I then catch and reverse out of. While I was a little tired at the time of recording this, having worked a full work day already, I do not make excuses for these mistakes. Instead, I am pleased that they happened and that I left them in the video. The point being, I'm not trying to be "perfect", but rather to share my thought process as I work the problem.
The code (which may be found below) is not perfect either, nor is it actually what I might submit to an interviewer. When I accomplished this task previously in order to be hired, I took some extra time to review my code before submitting it. This however is not quite the point. If I were challenged to perform this task in a live situation, before a potential employer, I believe that the process of making and correcting mistakes is more valuable than would be acing the task on a first try. It's a fact of development that we make poor design decisions and mistakes, and then reverse them out. What matters to most interviewers is that you do indeed recognize and self correct those decisions.
I doubt that this challenge ever would be used as a live challenge, because even if you were to perfect it on a first try, it ought to take 30 minutes or more for most. That said, I'm sure there are some interviewers that would be so brutal :-) When attending an in-person aptitude test, of course, arrive well rested and ready to present at your best.