Since rod is bent at the middle, so each part of it will have same length (2L) and mass (2M) as shown.
Moment of inertia of each part through its one end =31(2M)(2L)2 Hence, net moment of inertia through its middle point O is I=31(2M)(2L)2+31(2M)(2L)2=31[8ML2+8ML2]=12ML2