Factorial implementation; loop and recursion
One-liner factorial and tail-recursive approach