Sometimes, this is difficult....for instance, let's suppose that someone told you the zeroes of a function were 0 and 2
Have a look at this graph......https://www.desmos.com/calculator/elxkpygjkn
Notice that both functions have the same zeroes - 0 and 2 - but the the"blue" function has a zero of 2 with a multiplicity of 2.....thus, we need to know not only the zeroes, but what multiplicity is associated with each one to be able to determine the equation and draw the proper graph......!!!!
Also...remember that some functions may not have any "real" zeroes at all!!!