Recall that the moment of inertia of a point mass is given by the expression
In case of rod we need to consider it is to be made up of an infinite number of point masses. Each point mass to be multiplied by the square of its distance from the axis of rotation. Thereafter integral taken over the length of the rod.
Moment of inertia for a uniform rod of mass
Inserting values given in the problem