Create a function that takes a number num and returns its double factorial. Mathematically, the formulas for double factorial are as follows.
If num is even:
num !! = num (num - 2)( num - 4)(num - 6) ... (4)(2)If num is odd:
num !! = num (num - 2)(num - 4)(num - 6) ... (3)(1)If num = 0 or num = -1, then num !! = 1 by convention.
doubleFactorial(0) ➞ 1
doubleFactorial(2) ➞ 2
doubleFactorial(9) ➞ 945
# 9*7*5*3*1 = 945
doubleFactorial(14) ➞ 645120-1.