Samsung Electronics interview question

integral estimation from sampled points