Stokes' theorem says that for a force field ${\bf F}$ and a $2$-chain $S$ with boundary $\partial S$ embedded in ${\rm dom}({\bf F})$ one has
$$\int_S {\rm curl}\,{\bf F}\cdot d\vec\omega=\int_{\partial S} {\bf F}\cdot d{\bf x}\ .\tag{1}$$
In our example $S$ is a union of five squares $S_j$, and the $\partial S_j$ cancel, up to four segments making up a square shaped $1$-chain $\partial Q$ in the plane $z=-1$. This $1$-chain, as seen from above, runs counterclockwise around $Q$. When we now apply Stokes' theorem again, this time to $Q$, the correct choice of the positive normal will therefore be upwards.
It follows that we can continue formula $(1)$ by
$$\int_{\partial S} {\bf F}\cdot d{\bf x}=\int_{\partial Q} {\bf F}\cdot d{\bf x}=\int_Q {\rm curl}\,{\bf F}(x,y,-1)\cdot(0,0,1)\ {\rm d}(x,y)\ .$$
According to the givens, $${\rm curl}\,{\bf F}(x,y,-1)\cdot(0,0,1)=y+x\ ,
$$
and integrating the latter over $Q$ gives $0$, by symmetry.
(In the above the word chain means that we are not talking about a single smooth surface or curve, but with "formal sums" of such things. The $S$ in the original formulation of the problem is a $2$-chain. Its boundary $\partial S$ is the "sum" of the $\partial S_j$ of the constituent squares and amounts to the $1$-chain $C=\partial Q$.)