Update the function getTotalProjectHours
that processes the companyData
array and calculates the total hours worked on each project across all departments.
The function should return an array of objects, where each object represents a project with these properties.
name
: The name of the project.
hours
: The total hours worked on that project.