Introduction
The Range Minimum Query (RMQ) problem asks: given an array and multiple queries, find the minimum element in a specified range for each query.
Naive approach: For each query, scan from to and find the minimum. This takes per query, or total for queries.