First line contains an integer N, denoting the length of string.
Second line contains string S itself consists of small case alphabets only ('a' - 'z').
Third line contains an integer Q denoting number of queries that will be asked.
Next Q lines contains an integer P (1 <= P <= N) for which you need to find the number occurrence of character present at the Pth location preceeding P.
Answers
Answered by
0
Answer:
kkdrgdrydrsf
Explanation:
Similar questions
CBSE BOARD X,
6 months ago
Math,
6 months ago
Science,
6 months ago
History,
1 year ago
Computer Science,
1 year ago
English,
1 year ago