What is the rule to the function with inputs of 0;1;3;4 and outputs of 4;3;1;0

sketch a graph !!!

looks like a straight line with slope = -1 to me