Homework #2: Exclusive OR

Using a ternary operator. Implement an exclusive OR function called
`preferredName`