Extension of challenge 24 into n! (as 4! = 24)