Professional Documents
Culture Documents
Input:
The first line contains the compressed string.This is followed by Q that indicates the number of
questions Ma5termind shoots on Subway.Follows Q lines each line contain an integer K.
Output:
For every question output the Kth character if it exists else print -1 .
Constraints:
Note: