Answer:
When white silver chloride is exposed to sunlight, thermal energy excites the silver atoms which appears in flakes and it is black in colour which overtime spreads over to the silver chloride which is white in colour and turns it grey.
This reactions with sunlight dissociate the silver atoms into silver metals and chlorine molecule and it's called PHOTOCHEMICAL REACTION, since its requires energy in form of light to be initiated. Silver chloride are kept in amber bottles away from sunlight so as to prevent this decomposition.
Sunlight
2AgCl —————》 2Ag + Cl2