finds largest number
unfinished permutation search
several nested loops
progress on repetition count with RegExp
solved with multiple nested loops and RegExp