Solution to the alphabet permutation puzzle in Java Magazine