The base of S is the triangular region with vertices (0, 0), (1, 0), and (0, 1). Cross-sections perpendicular to the x-axis are squares. Find the volume V of this solid.