Flip the keys & values in a hash table / dictionary / array (PHP style)
Sigiloso
An incredibly simple Javascript function that did just that. Modified it for the one edge case of having multiple values, which I vocalized as a potential problem before writing it out on a whiteboard.