Completed Assignment 2.2
exclusive OR function