Will share later on. Not now.
ok
Anyone received follow up?
Not yet
how you guys applied for this test.
how you guys applied for this test.?
Has anybody received offer letter till now?
Not yet . I think it was a prank … no replies of email even .
no idea
Has anyone received the offer? I emailed them but no reply.
maybe they are not hiring now due to the current situation
yes they aren’t 
Sad
Its funny you had hopes for it
what was the field of dream question? Can you help?
from collections import defaultdict
t = map(int, input())
n, q = map(int, input().split(' '))
s = input()
alpha_indices = defaultdict(list)
for ind, i in enumerate(s):
alpha_indices[i].append(ind)
for _ in range(q):
action, ch, k = input().split(' ')
print(alpha_indices[ch])
if action == 'S':
print(alpha_indices[ch][int(k)-1] + 1)
else:
print(alpha_indices[ch][int(k)] if len(alpha_indices[ch]) >= (int(k)+1) else len(alpha_indices[ch]))
Time Complexity would be O(max(Q, N)) as a query can be solved in constant time.
