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]) ➞ 280
Every element in the array is greater than or equal to 0.