Update sum.cpp

Added comments