- We had to do a while loop with limit range breaking check
while count < k and (i + count) < len(s):- Making the sum of the letters
countSum += ord(s[i + count].lower()) - ord('a')- Converting the resulting sum into the respective letter
ans += chr(ord('a') + (countSum % 26))