# -*- coding:utf-8 -*-
class Solution:
    def FirstNotRepeatingChar(self, s):
        # write code here
        x=-1
        for i in s:
            if s.count(i) == 1:
                x=s.index(i)
                break
        return x