implement a group_by_owners function without inbuilt function in php 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;
}