hoj 2681 segment tree