I don't understand your answer. How does it answer the question?
Anyway... The answer should depend on (x,y), shouldn't it? That is, you figure out the two gradient vectors, then see when their span has dimension 0. Then, see when their span has dimension 1. Then, the remainder of the time...