Ice cube problem

Question

Hints

Answer