What Stokes' Theorem gives you is the relation between the surface integral of the curl of a vector field over a smooth oriented surface S, to the line integral of the vector field over its boundary C:
$$\int_C \vec F \cdot \vec {ds} = \iint_S (\
abla \times \vec F) \cdot \vec {dS}$$
The key here is to realize that the question they're asking you, to calculate the Flux integral over the surface S using Stokes theorem can be formulated as follows:
Let $ \vec G= \
abla \times \vec F$ then $$\iint_S \vec G \cdot \vec {dS} = \iint_S \
abla \times \vec F \cdot \vec {dS} = \int_C \vec F \cdot \vec {ds}$$ and from here what you should be able to is to find $F$ such that $G=\
abla \times \vec F$ and calculate the line integral. (Note that this can be done if and only if $\
abla \cdot \vec G=0$ )
Hope that helps!