Google Interview Question

Improve an existing algorithm for summation.