Write simplified one-liner for calculating factorials