Given a string, return the index of the first non-repeating character. If none exists, return -1.
Practise this challenge
All coding challenges