Hint: The pseudo acceleration acts on both the block and the water.
Step 1: Find the initial part of the block submerged in water.
Consider the diagram.

Let the density of water be
ρw and a cubical block of ice of side L be floating in water with x of its height (L) submerged in water.
The volume of the block, (V)=L3
Mass of the block, (m) =Vρ=L3ρ
Weight of the block, W = mg =L3ρg
Case 1:
The volume of the water displaced by the submerged part of the block =xL2
∴Weight of the water displaced by the block = xL2ρwg
In floating condition,
Weight of the block = Weight of the water displaced by the block
L3ρg=xL2ρwg
or xL=ρρw
Step 2: Find the final fraction of the block submerged in water.
Case 2:
When the elevator is accelerating upward with an acceleration a, then effective acceleration=(g + a) (∵Pseudo force is downward)
Then, the weight of the block =m(g + a)
=L3ρ(g + a)
Let x' fraction be submerged in water when the elevator is accelerating upwards.
Now, in the floating condition, the weight of the block = weight of the displaced water
L3ρ(g + a)=(x'L2)ρw(g+a)
or x'L=ρρw
From the 1st and 2nd case, we see that the fraction of the block submerged in water is independent of the acceleration of the elevator.