Create Exclusive-OR

Here is my try at making a function using a conditional operator for the given code from our assignment2.