secretSum -- written in c++-11, teseted in g++ 4.8.4, unfortunately there is no regex support in g++ 4.8x