Intel Corporation Interview Question

solving calculus and draw frequency plot in coordinate