An inversion is any pair of two elements that are out of order. How many inversions are present in each of the following arrays?
(a) [1,5,4,3,3,7)
(b) [5,4, 3, 2, 1]
(c) [1,2,3,4,5]
(d) [5,1,3,2, 4]
(e) [6,9,1, 4, 10]