Sum it up problem 1

https://ide.geeksforgeeks.org/gbtKIfHOS5------this is the link