To a solution of a substance, gradual addition of ammonium hydroxide results in a black precipitate which does not dissolve in excess of NH4OH. However,when HCl is added to the original solution, a white precipitate is formed. The solution contained :