# -*- coding:utf-8 -*-
class Solution:
    def FirstNotRepeatingChar(self, s):
        # write code here
        indexs=-1
        new_s=list(s)  ##字符串转化为列表
        for i in range(len(new_s)):
            if s.count(new_s[i])==1:
                indexs=s.index(new_s[i])
                break
        return indexs