The graphic that follows represents a discrete time function.

Make the samples have values between -40 and 5, varying 5 units when the counter k is increased one unit. To the left of zero and to the right of nine all samples are zero.
Create this function using only sums and subtractions, and multiplications by constants: