Alice is allowed to choose an arbitrary polynomial p(x) of any degree with nonnegative integer coefficients. Bob can infer the coefficients of p(x) by only two evaluations as follows. He chooses a real number a and Alice communicates p(a) to him. He then chooses a real number b and Alice communicates p(b) to him. What values of a and b helped Bob succeed and how?
This is from https://gurmeet.net/puzzles/perplexing-polynomial/index.html
My approach: I was thinking this is impossible unless, I say P(1)=0 and P(-1)=0 which would indicate 0 polynomial but the solution says something else. Please help me figure out the solution.