This question is based on the 2003 AP Computer Science Free-Response Questions. The AP questions are copyright © 2003 College Entrance Examination Board. This version is not endorsed by the College Board.