Create a function that takes an array containing nested arrays as an argument. Each subarray has 2 elements. The first element is the numerator and the second element is the denominator. Return the sum of the fractions rounded to the nearest whole number.
sumFractions([[18, 13], [4, 5]]) ➞ 2
sumFractions([[36, 4], [22, 60]]) ➞ 9
sumFractions([[11, 2], [3, 4], [5, 4], [21, 11], [12, 6]]) ➞ 11
Your result should be a number not string.