Answer: cart B is hollow
Explanation:
Given
Cart A is initially at rest and cart B is moving towards right and collide with cart A
After collision cart B started moving towards left i.e. mass of cart A is very large as compared to cart B.
Movement of cart B in the direction opposite to initial one Proves that cart B fails to transfer momentum to cart A because cart A is very heavy.
Thus we can conclude cart B is hollow.