RMQ problems => DP