Intel Corporation interview question

solving calculus and draw frequency plot in coordinate