this got accepted
the version with little complexity
segment tree for match stick problem
Merge branch 'master' of https://github.com/prembhaskal/code_practice
removed old code.