Cool goIITian
now let D=mL/2(M+m) [position of new com from center]
and x be the distance of the point of collision from new c.o.m.
so conserving angular momentum we get
mvx=[ML^2/12 +MD^2 +mx^2]w
where w=angular vel