Number of roots problem

Question

Hints

Answer