Make Versions in Segment Tree

Problem Name:
Make Versions in Segment Tree
Site:Spoj
Links:
Tags:
Problem setters: