This question looks like pretty easy and missing a crucial point to solve it but I am not sure. Here it is:
Let $M$ be an n dimensional compact manifold such that $H_i(M;\mathbb{Z}_2) = H_i(S^n;\mathbb{Z}_2)$ for all $i$. Then $M$ is orientable.
What I am wondering is since, from the given equation $H_i(M;\mathbb{Z}_2)$ is $\mathbb{Z}_2$ for $i=n$ and any manifold is already $\mathbb{Z}_2$ orientable, without M being orientable, how can we conclude that M is orientable? Do we also mean $\mathbb{Z}$-orientable?