The balanced equation for the production of water is:
2 H2 + O2 -> 2 H2O
In the question we are given 2 moles of H2, and 2 moles of O2, but from what we have seem, we will only need 1 mol of O2 in order to form 2 moles of H2O, therefore the limiting reactant will be H2 and the excess reactant will be O2