class Solution:
def FirstNotRepeatingChar(self , str: str) -> int:
# write code here
for i in str:
if str.count(i)==1:
return str.index(i)
return -1
class Solution:
def FirstNotRepeatingChar(self , str: str) -> int:
# write code here
for i in str:
if str.count(i)==1:
return str.index(i)
return -1