<reponame>rishabhiitbhu/hackerrank<filename>data_structure/challenges/queries-with-fixed-length.py
n, q = map(int, input().strip())
a = [int(x) for x in input().strip().split(' ')]
for _ in range(q):
    d = int(input().strip())
    
