Write a function that calculates overtime and pay associated with overtime.
Your function gets an array with 4 values:
Your function should spit out:
$ + earned that day (rounded to the nearest hundreth)overTime([9, 17, 30, 1.5]) ➞ "$240.00"
overTime([16, 18, 30, 1.8]) ➞ "$84.00"
overTime([13.25, 15, 30, 1.5]) ➞ "$52.50"
2nd example explained:
1 * 30 = 301 * 30 * 1.8 = 5430 + 54 = $84.00