A compound having one lone pair of electrons:
Ammonia
In the structure of Ammonia, Nitrogen atom is the central atom. Nitrogen has 5 valence electron out of which 3 electrons are involved in the bond formation with Hydrogen. Hence it has one lone pair of electron.
So, the correct answer is Ammonia.
In the structure of water, Oxygen atom is the central atom. It has 6 valence electrons, out of which 2 are involved in bond formation and 4 electrons are unshared electrons which form the 2 lone pair electrons.
In the structure of methane, Carbon is the central atom. Carbon has 4 valence electron and all the four electrons are involved in the bond formation. Hence, no lone pair are there in methane.
In the structure of Hydrogen sulphide, Sulfur is the central atom. It has a similar structure as that of water. hence, it also has 2 lone pair of electron.