LeetCode-find the starting and ending position&&find index if the target is found

NoSuchKey