Given a string S and an array of integers K, for each k in K, find the index of the k-th occurrence of a specific character C. If the k-th occurrence does not exist, return -1.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.