This is not a revolution problem. The cross sections are perp. to the x-axis, so it looks like we integrate wrt x by using the area of the squares.
Since the cross-sections are perp. to the x-axis, then the squares will have base width y and area y^2.
But
So, we need