PE20 solution and factorial function