You're given a string of available characters and a string representing a document that you need to generate. Write a function that …
Write a function that takes in a string of lowercase English-alphabet letters and returns the index of the string's first non-repeating …