Vlad problem: Answer queries to find minimum in a range of an array