find the index of each element of the string in the modified set of alphabets replace the element with the one having the same index in the actual set of alphabets
s2 += alphabets [ charSet . index ( i ) ] NEW_LINE return s2 NEW_LINE