application of segment tree with lazy update
solution to repeating decimal
practice problems on HackerRank