did Triangle Numbers Hackerrank problem
codejam round 1B 2014