Using ACM factorial function, and add whitespace between operators
Fixing checkstyle errors: Remove trailing whitespace