Lennar Interview Question

Calculate the area under the polynomial graph in python.