In this solution, they solve using Error = 1/2 (output - target)^2, however the question above gives a hint Error = 1/2 (target - output)^2
Although, I don't think it makes a difference to our solution, as the delta is squared in calculating the error, so the sign goes away, and in the derivative, the minuses would cancel out in chain rule.