Flip the keys & values in a hash table / dictionary / array (PHP style)
Anonymous
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.
Check out your Company Bowl for anonymous work chats.