Problem 4 decrements only after equivalency is checked.