The function you show is continuous on the half open interval [-4, 4), f(-1)= 2, and f(4)= -1, and there is no x such that f(x)= 1 so your example shows that Professor Constante is correct. Professor Sosa is wrong because the function you give is NOT continuous at x= 4 so is NOT continuous on the closed interval [-4, 4] which is what is required for the intermediate value theorem to apply.