First Unique Character — JavaScript easy interview problem
Given a string `s`, find the first non-repeating character in it and return its index. If it does not exist, return `-1`. Example: `firstUniqChar("leetcode")` → `0` (`"l"`).
Tags: hashmap, queue
Practice this Strings problem free in the JS Interview Playground with automated tests and unlockable solutions.