def first_Repeated_Char(str):
     
    h = {}
    for ch in str:
        if ch in h: 
            return ch;
        else: 
            h[ch] = 0
    return '\0'
def first_Repeated_Char(str):
    h = {}
    for line in str:
        if line in h:
           
            return line
        else:
            h[line] = 0
    return "0"