I was working on some problem of Facebook Hackercup and it actually involved implementation of Segment Tree I used a recursive version of Segment Tree which caused Stack Ov