Code is throwing Runtime Error
n = int(input())
sarr = []
for i in range(n):
sarr.append(input())
def fun(sarr, i, s):
if(i==len(sarr)):
farr = [0]*26
for i in s:
if farr[ord(i)-ord('a')]==1:
return 0
farr[ord(i)-ord('a')] = 1
return len(s)
c1 = -1
c2 = -1
if(len(s)+len(sarr[i])<=26):
c1 = fun(sarr, i+1, s+sarr[i])
c2 = fun(sarr, i+1, s)
return max(c1,c2)
print(fun(sarr, 0, “”))