A certain pale-green substance A becomes dark brown on adding NaNO2 in presence of dilute H2SO4. Its aqueous solution gives precipitates with BaCl2 and NaOH in separate tests. The latter precipitate B gradually changes colour from green to brown on exposure to air. What is A?