So, for each given range we just want to know, when the last of O(logN) segments will become empty.

"Dukkan mu mun san cewa akwai wata gibi a gwamnatin nan saboda rashin lafiyarsa ko kuma nisan shekarunsa.
