Create segmentTree Numbers sorted in Range O(nlogn).cpp

Segment Tree code