Refactored exercise 3 to use XOR function from exercise 2
Implemented the fifth exercise and changed what XOR returns (int instead of string)