Sum it up problem 2

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