ICICI Bank Interview Question

How do credit rating agencies work.