Given a string s, return the index of the first non-repeating character. Return -1 if none.
Example 1:
Input: leetcode Output: 0
Example 2:
Input: aabb Output: -1
Input format: A single string of lowercase letters.
Given a string s, return the index of the first non-repeating character. Return -1 if none.
Example 1:
Input: leetcode Output: 0
Example 2:
Input: aabb Output: -1
Input format: A single string of lowercase letters.