Euler 17: number letter counts
DetectCycle for a list