結果 : 24 write a python program to find the first repeated character in a given string