Statement-1: N2 and H2O are both molecules.
Statement-2: A molecule can have only similar kind of atoms.
The statement-2 is false. Atoms of the same elements or of different elements can join together to form molecules.
So Both N2 and H2O are molecules.