I realize there can be some question about total accuracy, but the problem is used to demonstrate the ability to problem solve in a logic manner, which you did. I used to use this problem as one of my series of tests for job applicants (for software enginners). It worked well as a predictor of good problem solving abilities.