PrepSwift Quant Tickbox Quiz #5, Question 22

Hi there, can someone explain the solution of this problem? I understand that f(x) is the input and f(x-1) is the rule. So in the second line: f(5) = f(5-1) = 4, which makes sense. However, by that logic, why is the answer to this question not -1 since f(0) = f(0 - 1) = -1? Wouldn’t 0 be the input into the rule?

image

So you have f(4) = 4. Try finding f(3) and f(2) using the same approach.