Select your answers. Once selected, they will be locked.
Given a string, return the index of the first non-repeating character. If there is none, return -1.
Input: "leetcode" Output: 0 Input: "aabb" Output: -1
Write your solution below: