solution to a baseball-themed coding puzzle