SPOJ_LITE Segment Tree Query skeleton