8 3 3 1 4 1 5 9 2 6 1 4 3 7 1 8
For this input, the required output is 1 1 1.
1 1 1
5 3 5 2 8 1 9 2 2 4 4 1 5
For this input, the required output is 2 1 1.
2 1 1
6 3 1 2 3 4 5 6 1 3 4 6 2 5
For this input, the required output is 1 4 2.
1 4 2
Given an array of nnn integers and qqq queries, answer each query asking for the minimum element in the range [l,r][l, r][l,r] (1-indexed, inclusive).