My issue
My code
t = int(input())
for i in range(t):
n = int(input())
s1 = input()
s2 = input()
s3 = input()
diff = abs(ord(s1[0]) -ord(s2[0]))
s4 = ''
for i in s3:
temp = (ord(i)+diff)
if temp >=97 and temp<=122:
s4 += chr(temp)
else:
temp = (temp%122) + 96
s4 += chr(temp)
print(s4)
Problem Link: CAESAR Problem - CodeChef