The volume of the cylinder is L*

Which is 12 * 3.14 * 4

=602.88 cubic cm
Each piece of ice's volume is defined as 4/3*

cubic cm (volume of a sphere). With r=3/2 (since 3 cm is the diameter)
=4/3 * 3.14 * (3/2)

=14.13 cubic cm
25 of those cumulate a total volume of 25 * 14.13 = 353.25 cm

Which means that the free space for water is 602.88-353.25=249.63 cubic cm
Got it?