This is a classic buoyancy problem. The mass m, must equal the mass of water displaced. So
m = ρ l2 h which implies l2 h = m/ρ
The volume of water before the cube is placed is V = L2 H ,
the volume of water after the cube is placed is V = L2 H - l2 h These two volumes must be equal so,
L2 K = L2 H + l2 h which implies K = H + l2 h /L2 substituting for l2 h gives
K = H + m/(ρ L2) This is the answer to part (a)
The condition for floatation is simply m < ρ l3 This is the answer to (b)
To answer (c) , just note that the condition is K > h
Substitutions from the equations above to eliminate K and h yield
H > m/(ρ l2 ) - m/ (ρ L2) after rearrangement this gives
H > (m/ρ) (L2 - l2 ) /(L2 l2 ) This is the answer for (c)