0
I have a known hierarchy of the organization units, by descending order:
$hierarchy = [
"a" => "organization",
"b" => "company",
"c" => "group",
"d" => "unit",
"e" => "sub_unit",
"f" => "team"
];
I am then given an input key-value array which can consist of any of the uni...