Yellow-coloured flakes when treated with HCl yield gas with a rotten egg odour. Choose the correct statement(s) regarding this chemical reaction.