Here is the link to the original question: https://leetcode.com/problems/find-the-difference/
Here is my code. I keep getting an "index out of range" error but I am not sure why.
class Solution:
def findTheDifference(self, s: str, t: str) -> str:
i = 0
ss = list(s)
tt = list(t)
while ss[i] == tt[i]:
i += 1
if ss[i] != tt[i]:
return tt[i]