Create a function to calculate the determinant of a 2 * 2 matrix. The determinant of the following matrix is: ad - bc:
[[a, b], [c, d]]calc_determinant([
[1, 2],
[3, 4]
]) ➞ -2
// Since (1 x 4) - (2 x 3) = -2
calc_determinant([
[5, 3],
[3, 1]
]) ➞ -4
calc_determinant([
[1, 1],
[1, 1]
]) ➞ 0Matrix will be in 2 * 2 form only.