function groupByOwners(array $files) : array { code example
Example: Implement a groupByOwners function that: Accepts an associative array
function groupByOwners(array $files) : array
{
$result = [];
foreach($files as $file => $owner) {
$result[$owner][] = $file;
}
return $result;
}