Bernstein Polynomial and Weierstrass approximation theorem