Solution to alphabet puzzle in Java Magazine