AMD interview question

Using c to write a sum solution code