# Time:  O(n)
# Space: O(1)
class Solution(object):
    def findTheDifference(self, s, t):
        """
        :type s: str
        :type t: str
        :rtype: str
        """
        res = 0
        for c in (s+t):
            res ^= ord(c)
        return chr(res)