def solution(my_string): answer = '' for i in range(len(my_string)): if my_string[i] in answer: continue else: answer += my_string[i] return answer