# -*- coding:utf-8 -*-
class Solution:
def FirstNotRepeatingChar(self, s):
# write code here
id=0
flag =True
for i in s:
n = s.count(i)
if n==1:
return id
id += 1
flag = False
if flag == False:
return -1