Samsung Electronics Interview Question

integral estimation from sampled points