poj 3368 solved by rmq