Write a function that takes a list of hours and returns the total weekly salary.
hours is listed sequentially, ordered from Monday to Sunday.WeeklySalary([8, 8, 8, 8, 8, 0, 0]) ➞ 400
WeeklySalary([10, 10, 10, 0, 8, 0, 0]) ➞ 410
WeeklySalary([0, 0, 0, 0, 0, 12, 0]) ➞ 280Every element in the array is greater than or equal to 0.